mirror of https://github.com/akelge/zsh
More and more changes, temporary disabled termcolors
This commit is contained in:
parent
73455f0d9e
commit
31ead6cf67
|
@ -1,11 +1,8 @@
|
|||
# setopt ALL_EXPORT
|
||||
|
||||
setopt ALWAYS_TO_END
|
||||
setopt AUTONAMEDIRS
|
||||
setopt AUTO_PARAM_SLASH
|
||||
setopt AUTO_REMOVE_SLASH
|
||||
setopt AUTO_RESUME
|
||||
#setopt CDABLE_VARS
|
||||
unsetopt CDABLE_VARS
|
||||
setopt CORRECT
|
||||
setopt FUNCTION_ARGZERO
|
||||
|
@ -19,7 +16,6 @@ setopt HIST_NO_STORE
|
|||
setopt HIST_REDUCE_BLANKS
|
||||
setopt INC_APPEND_HISTORY
|
||||
setopt NO_HIST_BEEP
|
||||
# setopt SHARE_HISTORY
|
||||
|
||||
setopt LIST_TYPES
|
||||
setopt LONG_LIST_JOBS
|
||||
|
@ -38,4 +34,5 @@ setopt AUTO_CD
|
|||
setopt AUTO_MENU
|
||||
setopt no_MENU_COMPLETE
|
||||
setopt AUTO_LIST
|
||||
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Variables
|
||||
|
||||
## Vars used always
|
||||
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$HOME/bin:."
|
||||
PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin:$HOME/bin:."
|
||||
MIBS=all
|
||||
LOGD=/var/log
|
||||
|
||||
|
@ -26,18 +26,6 @@ VISUAL=vim
|
|||
|
||||
export QUOTING_STYLE=escape
|
||||
|
||||
|
||||
# Setup brew
|
||||
# We need it here to fix the PATH
|
||||
# so we can setup pyenv and other stuff
|
||||
|
||||
for prefix in /usr/local /opt/homebrew; do
|
||||
brew=$(whence $prefix/bin/brew)
|
||||
if [ $brew ]; then
|
||||
eval "$($brew shellenv)"
|
||||
fi
|
||||
done
|
||||
|
||||
# Set umask to collaborative mode
|
||||
umask 002
|
||||
|
||||
|
|
|
@ -1,52 +0,0 @@
|
|||
#######################################################################################
|
||||
# Colorize terminal
|
||||
autoload colors zsh/terminfo
|
||||
zmodload zsh/terminfo
|
||||
|
||||
if [[ "$terminfo[colors]" -ge 8 ]]; then
|
||||
colors
|
||||
fi
|
||||
# for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do
|
||||
# eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}'
|
||||
# eval PR_LIGHT_$color='%{$fg[${(L)color}]%}'
|
||||
# # (( count = $count + 1 ))
|
||||
# done
|
||||
# PR_NO_COLOR="%{$terminfo[sgr0]%}"
|
||||
|
||||
# unset color
|
||||
#
|
||||
|
||||
typeset -Ag FX FG BG
|
||||
|
||||
FX=(
|
||||
reset "%{[00m%}"
|
||||
bold "%{[01m%}" no-bold "%{[22m%}"
|
||||
italic "%{[03m%}" no-italic "%{[23m%}"
|
||||
underline "%{[04m%}" no-underline "%{[24m%}"
|
||||
blink "%{[05m%}" no-blink "%{[25m%}"
|
||||
reverse "%{[07m%}" no-reverse "%{[27m%}"
|
||||
)
|
||||
|
||||
for color in {000..255}; do
|
||||
FG[$color]="%{[38;5;${color}m%}"
|
||||
BG[$color]="%{[48;5;${color}m%}"
|
||||
done
|
||||
|
||||
|
||||
ZSH_SPECTRUM_TEXT=${ZSH_SPECTRUM_TEXT:-Arma virumque cano Troiae qui primus ab oris}
|
||||
|
||||
# Show all 256 colors with color number
|
||||
function spectrum_ls() {
|
||||
for code in {000..255}; do
|
||||
# print -P -- "$code: %F{$code}$ZSH_SPECTRUM_TEXT%f"
|
||||
print -P -- "$FG[$code]$code: $ZSH_SPECTRUM_TEXT $FX[reset]"
|
||||
done
|
||||
}
|
||||
|
||||
# Show all 256 colors where the background is set to specific color
|
||||
function spectrum_bls() {
|
||||
for code in {000..255}; do
|
||||
print -P -- "$BG[$code]$code: $ZSH_SPECTRUM_TEXT $FX[reset]"
|
||||
done
|
||||
}
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
|
@ -1,7 +1,7 @@
|
|||
#######################################################################################
|
||||
# Aliases
|
||||
|
||||
alias ls='ls -F --color'
|
||||
# alias ls='ls -F --color'
|
||||
alias dir='ls -l'
|
||||
alias la='ls -A'
|
||||
alias ll='ls -l'
|
||||
|
|
|
@ -10,3 +10,11 @@ whence thefuck > /dev/null && eval $(thefuck --alias)
|
|||
|
||||
# z
|
||||
[ -f $LIBRARY/plugins/zsh-z/zsh-z.plugin.zsh ] && source $LIBRARY/plugins/zsh-z/zsh-z.plugin.zsh
|
||||
|
||||
# kubectl/krew
|
||||
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
|
||||
|
||||
if whence kubectl > /dev/null; then
|
||||
alias k=kubectl
|
||||
alias kp='kubectl ipick'
|
||||
fi
|
||||
|
|
|
@ -1,8 +1,22 @@
|
|||
# Darwin/OSX
|
||||
# Environment and aliases for OSX
|
||||
|
||||
|
||||
# Setup brew
|
||||
# We need it here to fix the PATH
|
||||
# so we can setup pyenv and other stuff
|
||||
|
||||
for prefix in /usr/local /opt/homebrew; do
|
||||
brew=$(whence $prefix/bin/brew)
|
||||
if [ $brew ]; then
|
||||
eval "$($brew shellenv)"
|
||||
fi
|
||||
done
|
||||
|
||||
export LSCOLORS="ExgxcxdxCxegedabagacad"
|
||||
alias ldd='otool -L'
|
||||
|
||||
alias ls='ls -F -G'
|
||||
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'
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
if type brew &>/dev/null
|
||||
then
|
||||
if type brew &>/dev/null;then
|
||||
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
|
||||
#
|
||||
# Reload compinit and bashcompinit, to parse brew installed completions
|
||||
|
|
Loading…
Reference in New Issue