From ed9333b79a3c97fc0bffc34f81d205146f4063cc Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Thu, 28 Oct 2021 16:14:03 +0200 Subject: [PATCH] Extra re-enable termcolors add status function support iterm2 on all platforms --- ...0-termcolors.zsh.off => 20-termcolors.zsh} | 0 zsh.d/90-plugins.zsh | 3 ++ zsh.d/Darwin/50-darwin.zsh | 3 -- zsh.d/Linux/50-linux.zsh | 2 +- zsh.d/zshfunctions/status | 30 ++++++++++++++++++ zsh.d/zshfunctions/status.zwc | Bin 0 -> 488 bytes 6 files changed, 34 insertions(+), 4 deletions(-) rename zsh.d/{20-termcolors.zsh.off => 20-termcolors.zsh} (100%) create mode 100644 zsh.d/zshfunctions/status create mode 100644 zsh.d/zshfunctions/status.zwc diff --git a/zsh.d/20-termcolors.zsh.off b/zsh.d/20-termcolors.zsh similarity index 100% rename from zsh.d/20-termcolors.zsh.off rename to zsh.d/20-termcolors.zsh diff --git a/zsh.d/90-plugins.zsh b/zsh.d/90-plugins.zsh index 369ddd5..7576f61 100644 --- a/zsh.d/90-plugins.zsh +++ b/zsh.d/90-plugins.zsh @@ -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" diff --git a/zsh.d/Darwin/50-darwin.zsh b/zsh.d/Darwin/50-darwin.zsh index e920b80..4d2f3e3 100644 --- a/zsh.d/Darwin/50-darwin.zsh +++ b/zsh.d/Darwin/50-darwin.zsh @@ -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 : diff --git a/zsh.d/Linux/50-linux.zsh b/zsh.d/Linux/50-linux.zsh index 44d069d..d276ff2 100644 --- a/zsh.d/Linux/50-linux.zsh +++ b/zsh.d/Linux/50-linux.zsh @@ -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 : diff --git a/zsh.d/zshfunctions/status b/zsh.d/zshfunctions/status new file mode 100644 index 0000000..0e2cd8e --- /dev/null +++ b/zsh.d/zshfunctions/status @@ -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 : diff --git a/zsh.d/zshfunctions/status.zwc b/zsh.d/zshfunctions/status.zwc new file mode 100644 index 0000000000000000000000000000000000000000..5226c6201d91816dad197ee5ad50e5ca0674516a GIT binary patch literal 488 zcmZQ)V`X9Z!oXmvXTd-W5C;iy0h& z;!FYz49!5=4TwQN5r|>phk1Pb_gIt4ifMKY9Rq^6Z7XIn93<^kQ5 zlarbP(#OKe#?C~7pMhGidK;Ucfog%?5CFOwo43K@SiH>xRL{r^)T737=gw`QkD+ET MIs?T}yiKm30j1tag8%>k literal 0 HcmV?d00001