Fixed zsh history and added colored manpages for zsh

master
Meliurwen 4 years ago
parent 8f0d7d7919
commit d946eee161
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 17
      zsh/.zshrc

@ -99,5 +99,22 @@ source $ZSH/oh-my-zsh.sh
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
HISTFILE="$HOME/.zsh_history"
HISTSIZE=500000000
SAVEHIST=100000000
#Upgrade the system
alias upgrade='sudo apt-get update && sudo apt upgrade && sudo apt-get autoremove --purge && sudo apt-get clean'
# Colored manpages
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[45;93m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[4;93m") \
man "$@"
}

Loading…
Cancel
Save