about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2023-11-03 11:53:21 -0500
committerStarfall <us@starfall.systems>2023-11-03 12:48:51 -0500
commit5fe0a64d37f368671c8d91d5204e940903e4c755 (patch)
tree26d24cd6506a40603254e83271b517e7e369c7ba
parent107a9301fbcf19d76fa236fb73a3b98d286d5354 (diff)
zsh: add url-quote-magic and manydots-magic
-rw-r--r--.config/zsh/.zshrc12
m---------.config/zsh/zsh-manydots-magic0
-rw-r--r--.gitmodules3
3 files changed, 12 insertions, 3 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index aa5e149..6faedc1 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -31,12 +31,18 @@ if [[ -a /usr/share/fzf/key-bindings.zsh ]] && [[ -a /usr/share/fzf/completion.z
 	source /usr/share/fzf/completion.zsh
 fi
 
+# plugins - url quote magic
+autoload -Uz url-quote-magic
+zle -N self-insert url-quote-magic
+
+# plugins - magic dots (must come after url-quote-magic)
+fpath=($ZDOTDIR/zsh-manydots-magic $fpath)
+autoload -Uz manydots-magic
+manydots-magic
+
 # magic navigation
 setopt autocd
 cdpath=(. $HOME $HOME/devil $HOME/src)
-alias -g ...='../..'
-alias -g ....='../../..'
-alias -g .....='../../../..'
 
 # a bit nicer life when copy/pasting commands from docs
 setopt interactive_comments
diff --git a/.config/zsh/zsh-manydots-magic b/.config/zsh/zsh-manydots-magic
new file mode 160000
+Subproject 4372de0718714046f0c7ef87b43fc0a598896af
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..53179d7
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule ".config/zsh/zsh-manydots-magic"]
+	path = .config/zsh/zsh-manydots-magic
+	url = git@github.com:knu/zsh-manydots-magic.git