https://news.ycombinator.com/item?id=11071754
Tracking . files using github:
git init --bare $HOME/.myconf
alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME'
config config status.showUntrackedFiles no
config remote add origin git@github.com:patrickbeam/system-config.git
You should add the alias line to your .zshrc file.
~/.myconf
is the directory set as the git bare repository. Any file within your home folder can now be tracked with normal commands like:
config status
config add .zshrc
config commit -m "adding .zshrc"
config add .config/nvim/init.vim
config commit -m "adding init.vim"
config push origin master
Repo for oh-my-zsh can be found here. https://github.com/robbyrussell/oh-my-zsh
Install with the following command via Curl
sudo apt-get istall zsh
sudo apt-get install git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
#Change Default shell
chsh -s /bin/zsh
exec $SHELL
Once this is installed we want to switch to the agnoster theme because it's fancy!
In your .zshrc file change your ZSH_THEME.
ZSH_THEME="agnoster"
Note: It's likely this will be broken on your mac without the installation of the patched Powerline Fonts
To install the fonts do the following
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd ..
rm -rf fonts
apt-get install tmux
- Install instructions for neovim via ppa.
- After you have installed neovim you might get the following error.
This was caused by the following folder
Unable to open swap file for "{filename}", recovery impossible
~/.local/share/nvim/swap
being owned by root. Just change ownership to your username and relaunch neovim.sudo chown -R my_user:my_user ~/.local/share/nvim/swap
- npm tools that need to be installed for each language server.
npm install -g dockerfile-language-server-nodejs