____ U ___ u _____ _____ _ U _____ u ____ | _"\ \/"_ \/|_ " _| |" ___| ___ |"| \| ___"|// __"| u /| | | | | | | | | | U| |_ u |_"_| U | | u | _|" <\___ \/ U| |_| |\.-,_| |_| | /| |\ \| _|/ | | \| |/__ | |___ u___) | |____/ u \_)-\___/ u |_|U |_| U/| |\u |_____| |_____| |____/>> |||_ \\ _// \\_ )(\\,-.-,_|___|_,-.// \\ << >> )( (__) (__)_) (__) (__) (__)(__)(_/ \_)-' '-(_/(_")("_)(__) (__)(__)
This repo is a store my personal Debian and macOS dotfiles. I use zsh as default shell with Oh My ZSH framework and the nice Cobalt2 theme always inside a tmux session.
Feel free to use it. Be creative to enhance it - and share it!
Warning: These dotfiles reflect my personal settings. If you want to use it - wellcome! But review the settings and remove things, you don't want to need. Do not use it blindly. Use at your own risk!
![tmux and vim](screenshot/screenshot.png?raw=true = 250x "tmux and vim")
- Dotfile handling via dotfiles manager (dfm). Install, update and uninstall of dotfiles is quiet easy.
- All vim, tmux, ... plugins are included as git-submodule. So you have the lastest version everytime you update via udot command.
- oh-my-zsh with fantastic Cobalt2 theme.
- Some helpfull aliases and functions for docker and more.
- A useful vim configuration with pathogen plugin manager and some plugins: syntastic, vim-airline, vim-fugitive, vim-tmux, vim-ack, Gundo
- My favorite tmux configuration and some tmux plugins: tmux-prefix-highlight, tmux-copycat, tmux-resurrect, tmux-urlview
- and many more ;)
- For local system-specific changes (proxy settings, etc.), you can create ~.commonrc.local
Some of configuration assets, needs Nerd Fonts to be installed. You have to install the font only on the host side (your macOS or your Windows maschine).
Here are only quick installation steps. For full reference visit Nerd Fonts on Github.
mkdir -p ~/.local/share/fonts
cd ~/.local/share/fonts && curl -fLo "Droid Sans Mono for Powerline Nerd Font Complete.otf" https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20for%20Powerline%20Nerd%20Font%20Complete.otf
cd ~/Library/Fonts && curl -fLo "Droid Sans Mono for Powerline Nerd Font Complete.otf" https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20for%20Powerline%20Nerd%20Font%20Complete.otf
Download Droid Sans Mono for Powerline Nerd Font Complete Mono Windows Compatible.otf and put it in your font folder.
I'm currently using Source Code Pro as my default font, which does not include Powerline support. In addition to this, I do have nerd-fonts installed and configured to be used for non-ascii characters.
Then, you have configure the fonts in iTerm2:
![iTerm2 Setup non-ASCII Text Font](screenshot/iTerm2_FontConfiguration.png?raw=true = 250x "iTerm2 Setup non-ASCII Text Font")
$ apt-get update
$ apt-install git tmux zsh ack-grep
$
$ cd ~
$ git clone https://github.com/Eragos/dotfiles.git .dotfiles
$ cd .dotfiles
$ git submodule init
$ git submodule update
$ ./bin/dfm install
$ git clone --depth 1 https://github.com/junegunn/fzf.git ~/.dotfiles/.fzf
$ ~/.dotfiles/.fzf/install
For easy update the complete dotfiles (inlc. all submodules) you can use udot command:
$ udot
- tmux-mem-cpu-load: brew install tmux-mem-cpu-load
- tmux-urlview: brew install urlview extract_url
- Ack: brew install ack
Suggestions, corrections or improvements are welcome!
On macOS you can configure the Caps-lock key acting as Ctrl key. Caps-lock is just beside a and the prefix Ctrl+a is just a fingetip away. So in my configuration I changed the prefix key from Ctrl+b to more useful Ctrl+a
Shortcut | Command |
---|---|
Ctrl+a r | reload tmux configuration |
Ctrl+a R | reorder windows |
Ctrl+a Ctrl+a | switch to last window |
Ctrl+a | | split pane vertical |
Ctrl+a - | split pane horizontal |
Ctrl+a a | save tmux session |
Ctrl+a A | restore tmux session |
Ctrl+a m | ask for a manpage and open it on a new pane |
Ctrl+a M | ask for a manpage and open it on a new window |