Giter VIP home page Giter VIP logo

dotfiles's Introduction

dotfiles

Installation

To download and install the dotfiles run the following command in your terminal:

bash <(curl -s https://raw.githubusercontent.com/Christof/dotfiles/master/install_tools.sh)

This installs:

  • git
  • zsh
  • oh-my-zsh
  • vim

Afterwards it downloads the dotfiles repository and calls install.sh to create aliases to the config files. Restart the system. If password-error occurs then restart the system and rerun script.

Special Installation Instructions for KDE

If there is no USERNAME variable set, run:

USERNAME=user123 bash <(curl -s https://raw.githubusercontent.com/Christof/dotfiles/master/install_tools.sh)

The zsh installer may tell you to reopen your terminal and install_tools.sh stops at this point. The command ...

chsh -s /bin/zsh user123

... changes the login shell for the user user123 to zsh. To finish this adjustment of the user configuration it is necessary to stop the current session and login again. Remove or move your ~/.zshrc file because it will be replaced by a symbolic link to the local clone of the dotfiles repository. Put your user specific configurations to ~/.zshrc.user or run

cat .bashrc >> .zshrc.user

Check the ~/.installed folder and rerun the installation script using the zsh.

Vim

Get all vim plugins by executing (in vim):

:PluginInstall

To use powerline fonts, execute ~/Documents/sources/dotfiles/install-powerline-fonts.sh and select a powerline font in the terminal preferences (for example Droid Sans Mono for Powerline).

There are two scripts to customize the settings:

  • before.vimrc in which the leader should be defined
  • after.vimrc to change user specific settings like the colorscheme

For YouCompleteMe with C/C++ support run:

cd ~/.vundle/YouCompleteMe
./install.py --clang-completer --system-libclang --system-boost

(do later) For YouCompleteMe with JavaScript support run:

cd ~/.vundle/tern_for_vim
npm install

Git

The .gitconfig file loads a ~/.gitconfig.user file which must be created manually and should user specific settings like:

[user]
  name = Username
  email = [email protected]
[github]
  user = username

You can check this modification with

git config user.name

Gnome Keyring

If you use Github's two factor authentication and want to store the personal access token in the gnome keyring, install it using the package manager:

sudo apt-get install libgnome-keyring-dev

Afterwards go into the git installation directory ~/Documents/sources/git-.../. The execute the following commands:

cd contrib/credential/gnome-keyring
sudo make
sudo cp git-credential-gnome-keyring /usr/local/bin

Zsh

The zsh settings can be customized in the .zshrc.user file where further paths can be added to PATH.

Tmux (Optional)

Use install_tmux.sh script or the package manager, if it contains the same or a newer version:

sudo apt-get install tmux tmuxinator 

dotfiles's People

Contributors

christof avatar spritzerpyro avatar josefkoller avatar hannamagdalena avatar andyschwarzl avatar hobber89 avatar csukda avatar

Watchers

 avatar James Cloos avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.