diff options
-rw-r--r-- | .zshrc | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 + |