Last active
May 23, 2019 12:20
-
-
Save ners/1661cd5bd6de089d3e5552e3f3cc803a to your computer and use it in GitHub Desktop.
Better Shell 2019: Fedora Edition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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