Обновление zsh
This commit is contained in:
parent
d38c66b5e1
commit
17951e8c06
1 changed files with 10 additions and 5 deletions
15
zsh/zshrc
15
zsh/zshrc
|
@ -6,7 +6,7 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Exports
|
# Exports
|
||||||
export PATH=$HOME/.bin:/usr/local/bin:$HOME/go/bin:$PATH
|
export PATH=$HOME/.local/bin:/usr/local/bin:$HOME/go/bin:$PATH
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
|
|
||||||
source ~/.config/zsh/antigen.zsh
|
source ~/.config/zsh/antigen.zsh
|
||||||
|
@ -19,12 +19,17 @@ antigen bundle zsh-users/zsh-completions
|
||||||
antigen apply
|
antigen apply
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
[[ ! -f `which exa` ]] || alias ls="exa"
|
alias ls="ls -F"
|
||||||
alias ll="ls -la"
|
alias l="ls"
|
||||||
|
alias ll="ls -AFhl"
|
||||||
alias cp="cp -i" # Confirm before overwriting something
|
alias cp="cp -i" # Confirm before overwriting something
|
||||||
alias df='df -h' # Human-readable sizes
|
|
||||||
alias free='free -m' # Show sizes in MB
|
|
||||||
alias gitu='git add . && git commit && git push'
|
alias gitu='git add . && git commit && git push'
|
||||||
|
alias k='kubectl'
|
||||||
|
|
||||||
|
[[ ! -f `which exa` ]] || alias ls="exa" && alias ll="exa -l"
|
||||||
|
|
||||||
|
# Functions
|
||||||
|
function tk() { mkdir -p $1; cd $1; }
|
||||||
|
|
||||||
## Options section
|
## Options section
|
||||||
setopt correct # Auto correct mistakes
|
setopt correct # Auto correct mistakes
|
||||||
|
|
Loading…
Reference in a new issue