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 ALWAYS_TO_END
|
||||||
setopt AUTONAMEDIRS
|
setopt AUTONAMEDIRS
|
||||||
setopt AUTO_PARAM_SLASH
|
setopt AUTO_PARAM_SLASH
|
||||||
setopt AUTO_REMOVE_SLASH
|
setopt AUTO_REMOVE_SLASH
|
||||||
setopt AUTO_RESUME
|
setopt AUTO_RESUME
|
||||||
#setopt CDABLE_VARS
|
|
||||||
unsetopt CDABLE_VARS
|
unsetopt CDABLE_VARS
|
||||||
setopt CORRECT
|
setopt CORRECT
|
||||||
setopt FUNCTION_ARGZERO
|
setopt FUNCTION_ARGZERO
|
||||||
|
@ -19,7 +16,6 @@ setopt HIST_NO_STORE
|
||||||
setopt HIST_REDUCE_BLANKS
|
setopt HIST_REDUCE_BLANKS
|
||||||
setopt INC_APPEND_HISTORY
|
setopt INC_APPEND_HISTORY
|
||||||
setopt NO_HIST_BEEP
|
setopt NO_HIST_BEEP
|
||||||
# setopt SHARE_HISTORY
|
|
||||||
|
|
||||||
setopt LIST_TYPES
|
setopt LIST_TYPES
|
||||||
setopt LONG_LIST_JOBS
|
setopt LONG_LIST_JOBS
|
||||||
|
@ -38,4 +34,5 @@ setopt AUTO_CD
|
||||||
setopt AUTO_MENU
|
setopt AUTO_MENU
|
||||||
setopt no_MENU_COMPLETE
|
setopt no_MENU_COMPLETE
|
||||||
setopt AUTO_LIST
|
setopt AUTO_LIST
|
||||||
|
|
||||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Variables
|
# Variables
|
||||||
|
|
||||||
## Vars used always
|
## 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
|
MIBS=all
|
||||||
LOGD=/var/log
|
LOGD=/var/log
|
||||||
|
|
||||||
|
@ -26,18 +26,6 @@ VISUAL=vim
|
||||||
|
|
||||||
export QUOTING_STYLE=escape
|
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
|
# Set umask to collaborative mode
|
||||||
umask 002
|
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
|
# Aliases
|
||||||
|
|
||||||
alias ls='ls -F --color'
|
# alias ls='ls -F --color'
|
||||||
alias dir='ls -l'
|
alias dir='ls -l'
|
||||||
alias la='ls -A'
|
alias la='ls -A'
|
||||||
alias ll='ls -l'
|
alias ll='ls -l'
|
||||||
|
|
|
@ -10,3 +10,11 @@ whence thefuck > /dev/null && eval $(thefuck --alias)
|
||||||
|
|
||||||
# z
|
# z
|
||||||
[ -f $LIBRARY/plugins/zsh-z/zsh-z.plugin.zsh ] && source $LIBRARY/plugins/zsh-z/zsh-z.plugin.zsh
|
[ -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
|
# Darwin/OSX
|
||||||
# Environment and aliases for 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"
|
export LSCOLORS="ExgxcxdxCxegedabagacad"
|
||||||
alias ldd='otool -L'
|
|
||||||
alias ls='ls -F -G'
|
alias ls='ls -F -G'
|
||||||
|
alias ldd='otool -L'
|
||||||
alias skill=killall
|
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'
|
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
|
if type brew &>/dev/null;then
|
||||||
then
|
|
||||||
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
|
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
|
||||||
#
|
#
|
||||||
# Reload compinit and bashcompinit, to parse brew installed completions
|
# Reload compinit and bashcompinit, to parse brew installed completions
|
||||||
|
|
2
zshrc
2
zshrc
|
@ -38,8 +38,8 @@ local KERNEL=`uname -s`
|
||||||
local LIBRARY=${BASE}/zsh.d
|
local LIBRARY=${BASE}/zsh.d
|
||||||
local KERNLIB=${LIBRARY}/${KERNEL}
|
local KERNLIB=${LIBRARY}/${KERNEL}
|
||||||
|
|
||||||
loadRC ${LIBRARY}
|
|
||||||
loadRC ${KERNLIB}
|
loadRC ${KERNLIB}
|
||||||
|
loadRC ${LIBRARY}
|
||||||
|
|
||||||
# Add local customization file
|
# Add local customization file
|
||||||
if [ -w $LIBRARY ]; then
|
if [ -w $LIBRARY ]; then
|
||||||
|
|
Loading…
Reference in New Issue