This repo is not maintained anymore as I am moving to setup my dotfiles via ansible.
This repo contains useful snippets/templates for various dotfiles:
Install Zsh on Ubuntu
sudo apt install zsh
Change to zsh as default shell
chsh -s $(which zsh)
Oh my Zsh
Install Oh my Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Powerlevel 10k configuration
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
source ~/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme
Use
p10k configure
or try to copy .p10k.zsh (not tested)
ZSH_THEME="powerlevel10k/powerlevel10k"
Config is defined in .zshrc
Each plugin must be install, e.g. such as
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/jeffreytse/zsh-vi-mode \
$ZSH/custom/plugins/zsh-vi-mode
Use zshell instead (or try fish shell), but if you really have to use the bashrc, you can find the .bashrc here
sudo apt-get install neovim
Create folder for vim init config (vimrc is init.vim in neovim)
mkdir ~/.config/nvim
nvim ~/.config/nvim/init.vim
Vim with vundle plugins, need to install vundle via
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
Plugins are defined in the vimrc and installed via :PluginInstall
My plugins:
- Vim-code-dark: Dark theme
- Airline: Nice status bar
- FZF: Fuzzy file search
- Ripgrep: Grep for vim
- Fugitive: Popular git plugin
- Nerdtree: File tree explorer
- Rainbow_Parentheses: Colorful parentheses
Vim Bootstrap is a tool similar to gitignore.io that generates a vimrc / init.vim based on your tool preferences
Git config provides various helper:
- Mergetool config (not tested/used right now)
- Aliases, git graph via CLI
Install tmux
sudo apt-get install tmux
In the future:
Install plugin manager tpm
tmux source .tmux.conf
-
exa/lsd replacing ls
-
z replacing cd (zoxide)
-
bat replacing cat
-
fd replacing find
-
diff-so-fancy/ delta replacing git diff
-
tldr replacing man
-
htop replacing top
-
ranger - file navigation
-
fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf ~/.fzf/install
-
fuck - thefuck
-
ctop -> Docker container top (not working yet)