diff options
author | Yigit Sever | 2024-08-20 09:46:07 +0200 |
---|---|---|
committer | Yigit Sever | 2024-08-20 09:46:07 +0200 |
commit | f588b6d660b6481c7b47e0a12d29372d0aa8ae8d (patch) | |
tree | ae8c4deab9a0f1adb461d74ad0a917102a148ccb | |
parent | 0d2a70990f49c2a412533261cac214647ba225ff (diff) | |
download | dotfiles-f588b6d660b6481c7b47e0a12d29372d0aa8ae8d.tar.gz dotfiles-f588b6d660b6481c7b47e0a12d29372d0aa8ae8d.tar.bz2 dotfiles-f588b6d660b6481c7b47e0a12d29372d0aa8ae8d.zip |
fish: add node version to right prompt
-rw-r--r-- | .config/fish/functions/fish_right_prompt.fish | 7 |
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 |
81 | end | 86 | end |