mirror of
https://github.com/akelge/zsh
synced 2025-07-03 13:09:07 +00:00
Extra
re-enable termcolors add status function support iterm2 on all platforms
This commit is contained in:
30
zsh.d/zshfunctions/status
Normal file
30
zsh.d/zshfunctions/status
Normal file
@ -0,0 +1,30 @@
|
||||
echo
|
||||
print -P "$FX[bold]Kernel:$FX[reset] $KERNEL"
|
||||
print -P "$FX[bold]Library:$FX[reset] $LIBRARY"
|
||||
echo
|
||||
|
||||
print -P "$FX[italic]$FX[underline]Utils$FX[reset]\n"
|
||||
for plugin in thefuck pyenv kubectl aws; do
|
||||
print -nP "$FX[bold]$plugin: "
|
||||
if type $plugin > /dev/null; then
|
||||
print -P "$FG[002]installed$FX[reset]"
|
||||
else
|
||||
print -P "$FG[001]absent$FX[reset]"
|
||||
fi
|
||||
done
|
||||
|
||||
print -nP "\n$FX[bold]z plugin: "
|
||||
if [ -e $LIBRARY/plugins/zsh-z/zsh-z.plugin.zsh ]; then
|
||||
print -P "$FG[002]present$FX[reset]"
|
||||
else
|
||||
print -P "$FG[001]absent$FX[reset]"
|
||||
fi
|
||||
|
||||
print -nP "\n$FX[bold]iTerm2 integration: "
|
||||
if [ -e $HOME/.iterm2_shell_integration.zsh ]; then
|
||||
print -P "$FG[002]present$FX[reset]"
|
||||
else
|
||||
print -P "$FG[001]absent$FX[reset]"
|
||||
fi
|
||||
|
||||
# vim: set ts=2 sw=2 tw=0 ft=sh :
|
Reference in New Issue
Block a user