patrickbeam / system-config

macOS system config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

System configuration using neovim and oh-my-zsh

Repo setup reference

https://news.ycombinator.com/item?id=11071754

Tracking of . files

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

Oh-my-zsh Install

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

Neovim Install

TMUX

apt-get install tmux

Ubuntu Install

  • Install instructions for neovim via ppa.
  • After you have installed neovim you might get the following error.
    Unable to open swap file for "{filename}", recovery impossible
    
    This was caused by the following folder ~/.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
    

coc-vim

  • npm tools that need to be installed for each language server.
    npm install -g dockerfile-language-server-nodejs
    
    

About

macOS system config


Languages

Language:Shell 50.0%Language:Vim Script 50.0%