From 428a59cafd1d2e60c68564b26f1801cde22930a7 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sun, 21 Mar 2021 12:56:40 +0000 Subject: [PATCH 1/3] Adds cat to auto-notify ignore list --- shells/zsh/includes/auto-notify.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shells/zsh/includes/auto-notify.zsh b/shells/zsh/includes/auto-notify.zsh index 7c1fa146..0c1c9f90 100644 --- a/shells/zsh/includes/auto-notify.zsh +++ b/shells/zsh/includes/auto-notify.zsh @@ -2,4 +2,4 @@ source "$ZSH_FOLDER/plugins/zsh-auto-notify/auto-notify.plugin.zsh" export AUTO_NOTIFY_THRESHOLD=5 export AUTO_NOTIFY_TITLE="Hey! %command has just finished" export AUTO_NOTIFY_BODY="It completed in %elapsed seconds with exit code %exit_code" -AUTO_NOTIFY_IGNORE+=("bat" "zathura" "libreoffice" "lf" "davmail" "neomutt" "newsboat" "w3m" "sl") +AUTO_NOTIFY_IGNORE+=("bat" "cat" "zathura" "libreoffice" "lf" "davmail" "neomutt" "newsboat" "w3m" "sl") From dfa5f5e4248194338cd41780b5d0e87f9096b0b0 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sun, 21 Mar 2021 12:57:57 +0000 Subject: [PATCH 2/3] Deletes focus zsh file --- shells/zsh/includes/focus.zsh | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 shells/zsh/includes/focus.zsh diff --git a/shells/zsh/includes/focus.zsh b/shells/zsh/includes/focus.zsh deleted file mode 100644 index 14cf6b39..00000000 --- a/shells/zsh/includes/focus.zsh +++ /dev/null @@ -1,33 +0,0 @@ -#Gain focus -gain_focus(){ - export HASFOCUS="true" - set_prompts - zle reset-prompt -} -zle -N gain_focus -bindkey '\033[I' gain_focus # Gain Focus - -loose_focus(){ - export HASFOCUS="false" - set_prompts - zle reset-prompt -} -zle -N loose_focus -bindkey '\033[O' loose_focus # Loose Focus - -# Stop terminal from sending focus events before a process runs -# This eliviates the issue of getting weird characters when a read (or similar) prompt is visible -dont_listen_for_focus(){ - printf '\033[?1004l' -} -add-zsh-hook preexec dont_listen_for_focus - -# Make the terminal send focus events again when the prompt is being drawn -# This almost works, although, if a long running process finishes in the background, that terminal will still look like it has focus -listen_for_focus(){ - # This makes sc (and maybe other terminals?) send escape codes to the shell when focus is gained / lost - printf '\033[?1004h' -} -add-zsh-hook precmd listen_for_focus - -HASFOCUS="true" From f6964bf3ba32efb0f48e148a3ef916f88f5cda9e Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sun, 21 Mar 2021 12:59:17 +0000 Subject: [PATCH 3/3] Only show explicitly installed when tab-completing pacman -R* When tabcompleting for pacman -R*, I generally only want to show things that I've explicitly installed, rather than things that have been installed automatically as a dependency. --- shells/zsh/includes/overidepartialcompletion.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shells/zsh/includes/overidepartialcompletion.zsh b/shells/zsh/includes/overidepartialcompletion.zsh index 3d2c9d3b..a9b31982 100644 --- a/shells/zsh/includes/overidepartialcompletion.zsh +++ b/shells/zsh/includes/overidepartialcompletion.zsh @@ -44,7 +44,7 @@ overidecomplete(){ # If I want to install something, give a list of things to install -S) toadd="$($cmd -Slq | fzf -m --preview "$cmd -Si {1}" | tr '\n' ' ')"; ret=0 ;; # If I want to uninstall something, give a list of things to uninstall - -R*) toadd="$($cmd -Qq | fzf -m --preview "$cmd -Qi {1}" | tr '\n' ' ')"; ret=0 ;; + -R*) toadd="$($cmd -Qeq | fzf -m --preview "$cmd -Qi {1}" | tr '\n' ' ')"; ret=0 ;; -Ql) toadd="$($cmd -Qq | fzf -m --preview "$cmd -Qi {1}" | tr '\n' ' ')"; ret=0 ;; esac ;; msfvenom)