Des menus dans votre terminal - retour accueil
git clone git://bebou.netlib.re/zenu
Log | Files | Refs |
commit a2342904cdad40c4eca7a064946b8a6af37c7e2f parent 36508d4f845d9667d77b6501d38b5e670e17a953 Auterice: Marc Chantreux <mc@unistra.fr> Date: Fri, 30 Jun 2023 22:55:16 +0200 remove irrelevant rc example Diffstat:
D | rc | | | 32 | -------------------------------- |
1 file changed, 0 insertions(+), 32 deletions(-)
diff --git a/rc b/rc @@ -1,32 +0,0 @@ -autoload -Uz add-zsh-hook -last_cmd=: -preexec () last_cmd="$*" -. ~/.zsh/zenu/zenu.zsh -_precmd_run_menu() { - [ "$last_cmd" ] || zenu.loop in ~/.zsh/zenu/menus/ - last_cmd= -} -PSGIT= -_precmd_udate_git_status() { - PSGIT=$( { - 2>/dev/null git branch --show-current && { - git status -s|wc -l - } - } | tr '\n' ' ' ) -} -add-zsh-hook -Uz precmd _precmd_udate_git_status -add-zsh-hook -Uz precmd _precmd_run_menu -chpwd() { - pwd >> ~/.was-here -} -PS1=$'%{\e]0;%n@%m:%~ $PSGIT\a%}$( - i=0; for it { echo -n "〔$[++i] $it〕"} -)${*/?*/\n} ▶ ' -bindkey -v -bindkey -s "((" "()\ei" -bindkey -s "{{" "{}\ei" -bindkey -s "[[" "[]\ei" -bindkey -s "''" "'\ei'" -bindkey -s '""' '"\ei"' -stty -ixo{n,ff} -export EDITOR=vim