Поправил zshrc
This commit is contained in:
parent
e460676b0a
commit
458d6c6fff
2 changed files with 20 additions and 26 deletions
46
zsh/zshrc
46
zsh/zshrc
|
@ -45,16 +45,14 @@ alias j="sudo journalctl"
|
||||||
alias s='sudo'
|
alias s='sudo'
|
||||||
alias sctl="sudo systemctl"
|
alias sctl="sudo systemctl"
|
||||||
alias ll="ls -AFhl"
|
alias ll="ls -AFhl"
|
||||||
alias cp="cp -i" # Confirm before overwriting something
|
alias cp="cp -i"
|
||||||
alias gitpush="git add . && git commit --amend --no-edit && git push -f"
|
alias gitpush="git add . && git commit --amend --no-edit && git push -f"
|
||||||
alias k="kubectl"
|
|
||||||
alias yu="ssh-add -e /usr/lib/x86_64-linux-gnu/libykcs11.so; ssh-add -s /usr/lib/x86_64-linux-gnu/libykcs11.so"
|
alias yu="ssh-add -e /usr/lib/x86_64-linux-gnu/libykcs11.so; ssh-add -s /usr/lib/x86_64-linux-gnu/libykcs11.so"
|
||||||
alias m="micro"
|
|
||||||
alias n="nvim"
|
alias n="nvim"
|
||||||
alias cp="cp -i" # confirm before overwriting something
|
alias n.="nvim ."
|
||||||
alias df="df -h" # human-readable sizes
|
alias cp="cp -i"
|
||||||
alias free="free -m" # show sizes in MB
|
alias df="df -h"
|
||||||
alias np="nano -w PKGBUILD"
|
alias free="free -m"
|
||||||
alias gitu='git add . && git commit && git push'
|
alias gitu='git add . && git commit && git push'
|
||||||
alias g=git
|
alias g=git
|
||||||
alias nsh='wl-paste | curl -d @- https://nixshare.ru/upload 2>/dev/null | wl-copy'
|
alias nsh='wl-paste | curl -d @- https://nixshare.ru/upload 2>/dev/null | wl-copy'
|
||||||
|
@ -65,28 +63,24 @@ alias p=python3
|
||||||
# Functions
|
# Functions
|
||||||
function tk() { mkdir -p $1; cd $1; }
|
function tk() { mkdir -p $1; cd $1; }
|
||||||
|
|
||||||
function alert() {
|
|
||||||
notify-send --expire-time=30000 $1 $2 && nohup play ~/.local/share/alarm.wav &
|
|
||||||
}
|
|
||||||
|
|
||||||
## Options section
|
## Options section
|
||||||
setopt correct # Auto correct mistakes
|
setopt correct # Auto correct mistakes
|
||||||
setopt extendedglob # Extended globbing. Allows using regular expressions with *
|
setopt extendedglob # Extended globbing. Allows using regular expressions with *
|
||||||
setopt nocaseglob # Case insensitive globbing
|
setopt nocaseglob # Case insensitive globbing
|
||||||
setopt rcexpandparam # Array expension with parameters
|
setopt rcexpandparam # Array expension with parameters
|
||||||
setopt nocheckjobs # Don"t warn about running processes when exiting
|
setopt nocheckjobs # Don"t warn about running processes when exiting
|
||||||
setopt numericglobsort # Sort filenames numerically when it makes sense
|
setopt numericglobsort # Sort filenames numerically when it makes sense
|
||||||
setopt nobeep # No beep
|
setopt nobeep # No beep
|
||||||
setopt appendhistory # Immediately append history instead of overwriting
|
setopt appendhistory # Immediately append history instead of overwriting
|
||||||
setopt histignorealldups # If a new command is a duplicate, remove the older one
|
setopt histignorealldups # If a new command is a duplicate, remove the older one
|
||||||
setopt autocd # if only directory path is entered, cd there.
|
setopt autocd # if only directory path is entered, cd there.
|
||||||
setopt inc_append_history # save commands are added to the history immediately, otherwise only when shell exits.
|
setopt inc_append_history # save commands are added to the history immediately, otherwise only when shell exits.
|
||||||
setopt histignorespace # Don"t save commands that start with space
|
setopt histignorespace # Don"t save commands that start with space
|
||||||
|
|
||||||
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' # Case insensitive tab completion
|
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' # Case insensitive tab completion
|
||||||
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" # Colored completion (different colors for dirs/files/etc)
|
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" # Colored completion (different colors for dirs/files/etc)
|
||||||
zstyle ':completion:*' rehash true # automatically find new executables in path
|
zstyle ':completion:*' rehash true # automatically find new executables in path
|
||||||
zstyle ':completion:*' menu select # Highlight menu selection
|
zstyle ':completion:*' menu select # Highlight menu selection
|
||||||
# Speed up completions
|
# Speed up completions
|
||||||
zstyle ':completion:*' accept-exact '*(N)'
|
zstyle ':completion:*' accept-exact '*(N)'
|
||||||
zstyle ':completion:*' use-cache on
|
zstyle ':completion:*' use-cache on
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue