Skip to content

Instantly share code, notes, and snippets.

@ners
Last active May 23, 2019 12:20
Show Gist options
  • Save ners/1661cd5bd6de089d3e5552e3f3cc803a to your computer and use it in GitHub Desktop.
Save ners/1661cd5bd6de089d3e5552e3f3cc803a to your computer and use it in GitHub Desktop.
Better Shell 2019: Fedora Edition
# install zsh
sudo dnf install zsh zsh-syntax-highlighting
sudo chsh -s $(which zsh) $USER
# configure zsh
curl -sSL https://git.grml.org/f/grml-etc-core/etc/zsh/zshrc > ~/.zshrc
cat << EOF > ~/.zshrc.local
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.profile
EOF
# pure
cd /tmp && git clone https://github.com/sindresorhus/pure.git && cd pure
FPATH=$(echo $fpath | awk '{ print $1 }')
sudo mkdir -p $ZPATH
sudo cp pure.zsh $ZPATH/prompt_pure_setup
sudo cp async.zsh $ZPATH/async
cat << EOF >> ~/.zshrc.local
PURE_PROMPT_SYMBOL="‣"
PURE_CMD_MAX_EXEC_TIME=1
autoload -U promptinit; promptinit
prompt pure
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment