added zshrc

master
Alessandro Mauri 3 years ago
parent f1247bee2d
commit cd7582269c
  1. 58
      conf/home/zshrc

@ -0,0 +1,58 @@
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=5000
SAVEHIST=5000
setopt autocd extendedglob
unsetopt beep
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/ale/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# User configuration
HISTCONTROL=ignoreboth
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
alias ls='ls --color=auto'
alias la='ls --color=auto -lAh'
alias gad='git add .'
alias gs='git status'
alias gp='git push'
alias gco='git commit'
alias gd='git diff'
alias rm='rm -i'
alias mv='mv -i'
alias open='xdg-open'
alias buonanotte='sudo poweroff'
alias progetti='cd $HOME/Documents/projects'
alias windoze='sudo zzz -R'
alias bruh='make && sudo make install && make clean'
alias mdl='ts youtube-dl -i -x --audio-format best --audio-quality 0 -o "%(title)s.%(ext)s"'
# Colored man pages with less(1)
export LESS="--RAW-CONTROL-CHARS"
export LESS_TERMCAP_mb=$(tput bold; tput setaf 2)
export LESS_TERMCAP_md=$(tput bold; tput setaf 6)
export LESS_TERMCAP_me=$(tput sgr0)
export LESS_TERMCAP_so=$(tput bold; tput setaf 3; tput setab 4)
export LESS_TERMCAP_se=$(tput rmso; tput sgr0)
export LESS_TERMCAP_us=$(tput smul; tput bold; tput setaf 7)
export LESS_TERMCAP_ue=$(tput rmul; tput sgr0)
export LESS_TERMCAP_mr=$(tput rev)
export LESS_TERMCAP_mh=$(tput dim)
export LESS_TERMCAP_ZN=$(tput ssubm)
export LESS_TERMCAP_ZV=$(tput rsubm)
export LESS_TERMCAP_ZO=$(tput ssupm)
export LESS_TERMCAP_ZW=$(tput rsupm)
export GROFF_NO_SGR=1
export PATH="$PATH:/home/ale/.local/bin"
PROMPT='%(?..[%F{red}%?%f] )%F{green}%n%f:%F{blue}%2~%f %(!.#.$) '
# Plugins
source $HOME/.config/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source $HOME/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Loading…
Cancel
Save