Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am bcmn on github.
  • I am bcmn (https://keybase.io/bcmn) on keybase.
  • I have a public key ASAKd2Ixrzahg6PLUGp6yqRgejQk1d0atwhr6AA7CbdA0go

To claim this, I am signing this object:

@bcmn
bcmn / fish2zsh.sh
Last active April 9, 2018 07:49
For when you finally miss POSIX... A macOS skeleton script to help you easily migrate from Fish Shell to Zsh.
brew install zsh zsh-completions zsh-autosuggestions
echo -e "\nfpath=(/usr/local/share/zsh-completions \$fpath)" >> ~/.zshrc
echo "source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sed -i.old 's/^\(export ZSH_THEME=\).*$/\export ZSH_THEME="fishy"/' ~/.zshrc
# TODO: Convert fish history to zsh CSV format
if ! grep -Fxq "/usr/local/bin/zsh" /etc/shells
then
echo "\n/usr/local/bin/zsh" >> /etc/shells
fi