git-completion.zsh is taken from https://github.com/git/git/tree/master/contrib/completion
wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.zshCreate symbolic link to local git.config to use it as global Git configuration:
ln -s ~/utils/git.config ~/.gitconfigTo use you can create a symbolic link to xd in /usr/local/bin:
ln -s ~/src/utils/xd /usr/local/bin/xdExample usage:
git diff ... |xd
hg diff ... |xd
svn diff ... |xd
cat some.patch |xdYou can also preprocess diff output to get more precise results:
git diff ... |grep -v ... |sed ... |xd
cat some.patch |grep -v ... |sed ... |xdInstall zsh
sudo apt install zshMake zsh the default shell
chsh -s /bin/zshInstall SF-Mono-Powerline font
mkdir -p ~/.fonts
git clone https://github.com/Dambe/SF-Mono-Powerline.git ~/src/fonts/SF-Mono-Powerline
cp ~/.fonts/SF-Mono-Powerline-* ~/.local/share/fonts
fc-cache -fvInstall oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
rm ~/.zshrcCreate symlinks
ln -s ~/src/utils/oh-my-zsh.rc ~/.zshrc
ln -s ~/src/utils/amuse_own.zsh-theme ~/.oh-my-zsh/themes/amuse_own.zsh-theme
source ~/.zshrcRefer to https://github.com/junegunn/fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/installInstall tmux
sudo apt install tmuxCreate symlink for tmux configuration
ln -s ~/src/utils/tmux.conf ~/.tmux.confInstall tmux plugin manager (TPM). Refer to https://github.com/tmux-plugins/tpm
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpmStart tmux using tmux -2 and run the following command
tmux source ~/.tmux.confTo install plugins, press prefix + I (capital i, as in Install) to fetch the plugins.
Refer to https://github.com/chriskempson/base16-shell
git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shellCreate symlink to vim configuration
ln -s ~/src/utils/vim.rc ~/.vimrcInstall vim Plugin Manager vim-plug. Refer to https://github.com/junegunn/vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vimOpen vim and type :PlugInstall to install plugins.