We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13c3a92 commit eb19f89Copy full SHA for eb19f89
zsh/default.nix
@@ -42,6 +42,7 @@
42
43
# Load plugins
44
source "${./ghq.plugin.sh}"
45
+ source "${./disable-space-removal.plugin.sh}"
46
source "${./local_history.plugin.zsh}"
47
# source "$${pkgs.asdf-vm}/etc/profile.d/asdf-prepare.sh"
48
zsh/disable-space-removal.plugin.sh
@@ -0,0 +1,12 @@
1
+insert-bar() {
2
+ # when just after completion
3
+ if [[ $LASTWIDGET == (expand-or-complete|complete-word|menu-complete|expand-or-complete-prefix|_main_complete) ]]; then
4
+ # disable removing the last space in the completion
5
+ LBUFFER="$LBUFFER|"
6
+ else
7
+ zle self-insert
8
+ fi
9
+}
10
+
11
+zle -N insert-bar
12
+bindkey '|' insert-bar
0 commit comments