Aggiunto scratchpad per zshrc

This commit is contained in:
giuliof 2021-10-24 19:20:17 +00:00
parent b16eaa1bcc
commit a43c4725dd
1 changed files with 20 additions and 0 deletions

20
scratchpad.zsh Normal file
View File

@ -0,0 +1,20 @@
#### Feature custom per lo zshrc
### Alias utili
## Sostituisce cat con bat (batcat su Ubuntu)
alias cat='bat --paging=never'
## Sostituisce le shortcut di ls con exa
alias la='exa -abghHliS'
alias ll='exa -bghHliS'
## Attiva un filtro più "raffinato" per la ricerca nella history
# https://grml.ml.grml.narkive.com/pGRsY1uU/zsh-history-completion-via-arrow-keys
autoload -Uz up-line-or-beginning-search
zle -N up-line-or-beginning-search
autoload -Uz down-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey '\eOA' up-line-or-beginning-search
bindkey '\e[A' up-line-or-beginning-search
bindkey '\eOB' down-line-or-beginning-search
bindkey '\e[B' down-line-or-beginning-search