re-enable termcolors
add status function
support iterm2 on all platforms
This commit is contained in:
Andrea Mistrali 2021-10-28 16:14:03 +02:00
parent 6e85b0ced9
commit ed9333b79a
No known key found for this signature in database
GPG Key ID: 6FB0A77F6D5DA9B2
6 changed files with 34 additions and 4 deletions

View File

@ -18,3 +18,6 @@ if whence kubectl > /dev/null; then
alias k=kubectl
alias kp='kubectl ipick'
fi
# Setup iTerm shell integration
test -e $HOME/.iterm2_shell_integration.zsh && source $HOME/.iterm2_shell_integration.zsh && export ITERM_ENABLE_SHELL_INTEGRATION_WITH_TMUX=YES || echo "iTerm sh integration not installed"

View File

@ -20,8 +20,5 @@ alias ldd='otool -L'
alias skill=killall
alias lsrebuild='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user'
# Setup iTerm shell integration
test -e $HOME/.iterm2_shell_integration.zsh && source $HOME/.iterm2_shell_integration.zsh && export ITERM_ENABLE_SHELL_INTEGRATION_WITH_TMUX=YES || echo "iTerm sh integration not installed"
# vim: set ts=4 sw=4 tw=0 ft=zsh :

View File

@ -8,7 +8,7 @@ if which dircolors > /dev/null; then
fi
fi
alias ls='LANG=C ls -F --color=auto --group-directories-first'
alias ls='LC_ALL=C ls -F --color=auto --group-directories-first'
alias open='xdg-open '
# vim: set ts=4 sw=4 tw=0 ft=zsh :

30
zsh.d/zshfunctions/status Normal file
View 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 :

Binary file not shown.