/shellrc

Dotfiles for bash/zsh

Primary LanguageShellGNU General Public License v3.0GPL-3.0

My shell dotfiles.

TODO :

Features

  • ~/.shellrc/rc.d as an include.d style directory for scripts used by all shells
  • ~/.shellrc/bashrc.d as an include.d style directory for bashrc scripts
  • ~/.shellrc/zsh.d as an include.d style directory for zshrc scripts
  • ~/.shellrc/login.d as an include.d style directory for shared zlogin/bash_profile scripts
  • ~/.shellrc/vim.d as an include.d style directory for vim scripts

Installation

Install the apps

  • vim
  • zsh
  • oh-my-zsh
  • sublime text 2
sudo add-apt-repository ppa:webupd8team/sublime-text-2 && sudo apt-get update
sudo apt-get install sublime-text vim zsh
chsh -s `which zsh` # change zsh to default shell /!\ log out and in to see changes
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # from https://github.com/robbyrussell/oh-my-zsh

Clone the repo

cd $HOME
git clone --recursive git://github.com/ice3/shellrc.git .shellrc  # to clone submodules

Link all the dotfiles at once

for file in ~/.shellrc/dotfiles/*
do
  ln -sf "$file" $HOME/.`basename "$file"`
done

Or link the dotfiles individually

# bash config
ln -sf ~/.shellrc/dotfiles/bashrc .bashrc
ln -sf ~/.shellrc/dotfiles/bash_profile .bash_profile
ln -sf ~/.shellrc/dotfiles/inputrc .inputrc

# zsh config
ln -sf ~/.shellrc/dotfiles/zshrc .zshrc
ln -sf ~/.shellrc/dotfiles/zlogin .zlogin
ln -sf ~/.shellrc/dotfiles/oh-my-zsh/themes/crunch_hostname.zsh-theme .oh-my-zsh/themes/crunch_hostname.zsh-theme

#vim
ln -sf ~/.shellrc/dotfiles/vimrc .vimrc
ln -sf ~/.shellrc/dotfiles/vim .vim

#git
ln -sf ~/.shellrc/dotfiles/gitignore .gitignore
ln -sf ~/.shellrc/dotfiles/gitconfig .gitconfig

#byobu
ln -sf ~/.shellrc/dotfiles/byobu .byobu

# .config files
ln -sf ~/.shellrc/config/flake8 $HOME/.config/flake8
ln -sf ~/.shellrc/config/redshift.conf $HOME/.config/redshift.conf

Configuration files for bash:

  • bashrc
  • bash_profile
  • input_rc

Configuration files for zsh:

  • zshrc
  • zlogin

Configuration files for vim:

  • vimrc
  • vim folder (bootstrap bundle/vundle package manager)
  • vim.d folder
  • in ViM, to install : <esc>:BundleInstall<enter>
  • to install powerline fonts : cd ~/.shellrc/vim.d/fonts && ./install.sh then change the font in the terminal (for gnome term : "Edit > Edit Profile > Font"

Configuration files for git:

  • gitconfig

ST2 / ST3

  • config/sublime-text-{2, 3}/Packages/User/
  • languages settings
  • keymaps and general settings
  • package control config
  • to install
mv $HOME/.shellrc/config/sublime-text-2/Packages/User{,.bak}
ln -sf $HOME/.shellrc/config/sublime-text-2/Packages/User $HOME/.config/sublime-text-2/Packages/User
##############
mv $HOME/.shellrc/config/sublime-text-3/Packages/User{,.bak}
ln -sf $HOME/.shellrc/config/sublime-text-3/Packages/User $HOME/.config/sublime-text-3/Packages/User