## Customise terminal prompt #### Install ``` # Remove oh-my-zsh if installed rm -rf ~/.oh-my-zsh # Backup zsh config mv ~/.zshrc ~/.zshrc-bak # Download pure in zsh folder mkdir -p "$HOME/.zsh" git clone --single-branch https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure" ``` #### zshrc config Create `~/.zshrc` file and paste this content ``` # pure prompt fpath+=("$HOME/.zsh/pure") autoload -U promptinit; promptinit prompt pure # single line prompt prompt_newline='%666v' PROMPT=" $PROMPT" # pure configs PURE_CMD_MAX_EXEC_TIME=60 SAVEHIST=1000 HISTFILE=~/.zsh_history # git auto-complete autoload -Uz compinit && compinit ``` #### Open new terminal * If you see error like : `zsh compinit: insecure directories, run compaudit for list.` then run this command, [source](https://stackoverflow.com/questions/13762280/zsh-compinit-insecure-directories) ``` compaudit | xargs chmod g-w ```