summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.zshrc11
1 files changed, 9 insertions, 2 deletions
diff --git a/.zshrc b/.zshrc
index e3202bd..9ee8f81 100644
--- a/.zshrc
+++ b/.zshrc
@@ -55,10 +55,17 @@ bindkey -e
# ZSH VIM MODE
export KEYTIMEOUT=1
+# https://github.com/jeffreytse/zsh-vi-mode
+source $HOME/.local/share/zsh/zsh-vi-mode.plugin.zsh
###
## == Prompt ==
export PS1="%c$ "
-# Set cursor to underline
-printf '\033[4 q'
+# Add jwt-decode option
+if [ "$(command -v jq)" ]; then
+ jwt-decode() {
+ jq -R 'split(".") |.[0:2] | map(@base64d) | map(fromjson)' <<< $1
+ }
+fi
+