summaryrefslogtreecommitdiffstats
path: root/.config/fish/functions
diff options
context:
space:
mode:
authorYigit Sever2024-08-20 09:46:07 +0200
committerYigit Sever2024-08-20 09:46:07 +0200
commitf588b6d660b6481c7b47e0a12d29372d0aa8ae8d (patch)
treeae8c4deab9a0f1adb461d74ad0a917102a148ccb /.config/fish/functions
parent0d2a70990f49c2a412533261cac214647ba225ff (diff)
downloaddotfiles-f588b6d660b6481c7b47e0a12d29372d0aa8ae8d.tar.gz
dotfiles-f588b6d660b6481c7b47e0a12d29372d0aa8ae8d.tar.bz2
dotfiles-f588b6d660b6481c7b47e0a12d29372d0aa8ae8d.zip
fish: add node version to right prompt
Diffstat (limited to '.config/fish/functions')
-rw-r--r--.config/fish/functions/fish_right_prompt.fish7
1 files changed, 6 insertions, 1 deletions
diff --git a/.config/fish/functions/fish_right_prompt.fish b/.config/fish/functions/fish_right_prompt.fish
index 5963ed9..1e28dfc 100644
--- a/.config/fish/functions/fish_right_prompt.fish
+++ b/.config/fish/functions/fish_right_prompt.fish
@@ -76,6 +76,11 @@ function fish_right_prompt --description 'Write out the right prompt'
76 set virtualenv "$green 🐍 " (basename "$VIRTUAL_ENV") 76 set virtualenv "$green 🐍 " (basename "$VIRTUAL_ENV")
77 end 77 end
78 78
79 set -l node_version
80 if set -q nvm_current_version
81 set node_version "$red  " "$nvm_current_version"
82 end
83
79 set hour $blue(date '+%R') 84 set hour $blue(date '+%R')
80 echo -n -s $virtualenv ' ' $repo_info ' ' $hour 85 echo -n -s $node_version ' ' $virtualenv ' ' $repo_info ' ' $hour
81end 86end