Home ZSH with dotfiles
Post
Cancel

ZSH with dotfiles

Notes for myself on installing standard set of dotfiles.

Inspired by https://www.atlassian.com/git/tutorials/dotfiles

Install zsh

1
sudo apt install zsh zsh-doc

Change shell to zsh

1
chsh -s /bin/zsh

Logout and back in, zsh will prompt if you want to set it up, select “0” for no setup.

Install Oh My Zsh

1
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install Dotfiles

Be sure to ssh into the host with agent forwarding (-A) enabled.

My dotfile README.md

1
2
3
git archive [email protected]:mikecarlton/dotfiles main -- \
  README-dotfiles.md | sed -n -e '/^#BEGIN/,/^#END/p' > /tmp/install-dotfiles.sh
bash /tmp/install-dotfiles.sh main

Also should install keychain (along with a copy of id_ed25519 key).

1
sudo apt install keychain

and ydiff

On a Mac:

1
brew install ydiff

On linux:

1
2
curl -ksSL https://raw.github.com/ymattw/ydiff/master/ydiff.py | sudo tee /usr/local/bin/ydiff
sudo chmod +x /usr/local/bin/ydiff

Will probably need to fix python:

1
sudo apt-get install python-is-python3
This post is licensed under CC BY 4.0 by the author.