aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2022-08-31 12:17:00 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2022-08-31 12:17:00 +0200
commitbb0f07e2a69ccded20b4a2d8e16db2bf3b8f8308 (patch)
treed0e9e5540e523bafb8abb128b129d11bcfd3ba1e
parent9c190f08ccc17239d6ddf4e0705cb4ebe17c9d8a (diff)
Complete available totp services in zsh
Closes #25
-rw-r--r--_totp3
-rwxr-xr-xshell_only.sh3
2 files changed, 6 insertions, 0 deletions
diff --git a/_totp b/_totp
new file mode 100644
index 0000000..6c38a2a
--- /dev/null
+++ b/_totp
@@ -0,0 +1,3 @@
+#compdef totp
+
+_files -W ~/.2fa
diff --git a/shell_only.sh b/shell_only.sh
index f7653c8..b1dfd17 100755
--- a/shell_only.sh
+++ b/shell_only.sh
@@ -51,6 +51,9 @@ ln -s ${PWD}/zsh_aliases ~/.zsh_aliases
ln -s ${PWD}/tmux.conf ~/.tmux.conf
ln -s ${PWD}/vimrc ~/.vimrc
+mkdir -p ~/.oh-my-zsh/completions/
+ln -s ${PWD}/_totp ~/.oh-my-zsh/completions/_totp
+
mkdir -p ~/.local/bspwm-setup/
ln -s ${PWD}/lockscreen.xkb ~/.local/bspwm-setup/lockscreen.xkb