Skip to content

Instantly share code, notes, and snippets.

@yuraloginoff
Last active June 6, 2020 11:07
Show Gist options
  • Save yuraloginoff/5eaa1ff90f180dd2f5b2fbf953dc3de4 to your computer and use it in GitHub Desktop.
Save yuraloginoff/5eaa1ff90f180dd2f5b2fbf953dc3de4 to your computer and use it in GitHub Desktop.
#linux:.zshrc
ZSH_THEME="avit"
plugins=(npm extract vscode web-search z)
#################
# #
# ALIASES #
# #
#################
# Save me from myself
alias rm="rm -i"
alias mv="mv -i"
alias cp="cp -i"
# ls
alias l="ls -1A"
alias ll="ls -lhAopSW"
# Python stuff
alias server="python3 -m http.server"
alias python="python3"
alias pip='pip3'
# Other
alias h="history"
alias npmupd="sudo npm install npm@latest -g"
alias weather="curl wttr.in/Москва"
alias pogoda="weather"
alias getz="code ~/.zshrc"
alias setz="source ~/.zshrc"
###############
# #
# OPTIONS #
# #
###############
setopt NO_CASE_GLOB
setopt AUTO_CD
setopt EXTENDED_HISTORY
SAVEHIST=5000
HISTSIZE=2000
setopt SHARE_HISTORY # share history across multiple zsh sessions
setopt APPEND_HISTORY # append to history
setopt INC_APPEND_HISTORY # adds commands as they are typed, not at shell exit
setopt HIST_EXPIRE_DUPS_FIRST # expire duplicates first
setopt HIST_IGNORE_DUPS # do not store duplications
setopt HIST_FIND_NO_DUPS #ignore duplicates when searching
setopt HIST_REDUCE_BLANKS # removes blank lines from history
setopt CORRECT
setopt CORRECT_ALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment