For Full install execute this command :
git submodules update --init
Apply the config of bash in your machine :
ln -s </my/repo/config-linux>/bash/bashrc ~/.bashrc
ln -s </my/repo/config-linux>/bash/bash_profile ~/.bash_profile
ln -s </my/repo/config-linux>/bash/git-prompt-colors.sh ~/.git-prompt-colors.sh
If you don't want git prompt then you don't need the last link and you need to delete the line of ~/.bashrc with source "$DIR_BASHRC/git-prompt/gitprompt.sh"
For Git prompt you need submodules
git submodules update --init
You want just git prompt see bash-git-prompt and add in your ~/.bashrc this line :
export GIT_PROMPT_ONLY_IN_REPO=0
export GIT_PROMPT_FETCH_REMOTE_STATUS=1
source "</my/repo/config-linux>/bash/git-prompt/gitprompt.sh"
For customize your prompt, you can copy bash/git-prompt-colors.sh to ~/.git-prompt-colors.sh and edit as you want.
The order of variables without any space is :
${LAST_COMMAND_INDICATOR}
${GIT_PROMPT_START_ROOT}
${PROMPT_LEADING_SPACE}
${GIT_PROMPT_PREFIX}
${GIT_PROMPT_BRANCH}${GIT_BRANCH}
${GIT_PROMPT_REMOTE}${GIT_REMOTE}
${GIT_PROMPT_STAGED}${GIT_STAGED}
${GIT_PROMPT_CONFLICTS}${GIT_CONFLICTS}
${GIT_PROMPT_CHANGED}${GIT_CHANGED}
${GIT_PROMPT_UNTRACKED}${GIT_UNTRACKED}
${GIT_PROMPT_STASHED}${GIT_STASHED}
${GIT_PROMPT_CLEAN}
${ResetColor}
${GIT_PROMPT_SUFFIX}
${PROMPT_END}
You can use zsh to replace bash, I use it for better completion and I've installed the same git prompt with async update
Apply the config of bash in your machine :
ln -s </my/repo/config-linux>/zsh/zshrc ~/.zshrc
ln -s </my/repo/config-linux>/zsh/zprofile ~/.zprofile
ln -s </my/repo/config-linux>/zsh/zsh_aliases ~/.zsh_aliases
ln -s </my/repo/config-linux>/zsh/zsh-git-prompt/ ~/.zsh/zsh-git-prompt
- ~/.zshrc contain all configuration
- ~/.zprofile is used when you want to start directly with zsh
- ~/.zsh_aliases contain some aliases for zsh, contain a lot of same alias define on my bash config
- ~/.zsh for me contains some add script as git-prompt
- ~/.zsh/zsh-git-prompt my version of zsh-git-prompt edited to run a
git fetch
every 5 minutes and use async update and add stash information.
zsh-git-prompt use Python or Haskell
I use zsh-completion on Archlinux repository
For install color scheme for URxvt just copy Xdefaults to ~/.Xdefaults
ln -s </my/repo/config-linux>/Xdefaults ~/.Xdefaults
Require : rxvt-unicode urxvt-perls urxvt-font-size urxvt-tabbedex
When you execute a command style git config --global you write in ~/.gitconfig I use git for partage one config for all machine who use git.
ln -s </my/repo/config-linux>/gitconfig ~/.gitconfig
Add in ~/.xinitrc
cat $HOME/.i3/config.base \
$HOME/.i3/config.$HOSTNAME > $HOME/.i3/config
exec i3
For have a french keyboard in all session, add in /etc/X11/xinit/xinitrc.d/xinitrc.i3
setxkbmap fr
I use link, not copy because when I pull in this repo, I want update my config system.
We want to replace /my/repo/config-linux/ by the path of this repo in your system. If you want juste add some line we use copy/paste with your favorite editor.