From a43c4725dd01aa20448a0a18e5a36f8115f9880b Mon Sep 17 00:00:00 2001 From: giuliof Date: Sun, 24 Oct 2021 19:20:17 +0000 Subject: [PATCH] Aggiunto scratchpad per zshrc --- scratchpad.zsh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 scratchpad.zsh diff --git a/scratchpad.zsh b/scratchpad.zsh new file mode 100644 index 0000000..9e3de73 --- /dev/null +++ b/scratchpad.zsh @@ -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