zsh: current .zshrc
~/.dotfiles/.zshrc
printf "." # show start of shell
#### is only loaded if shell is interactive e.g. terminal window
# https://github.com/ohmyzsh/ohmyzsh
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# LOCAL config file
zsh_local="$HOME/.zsh_local_config"
if [ -f "$zsh_local" ]; then
source "$zsh_local"
fi
#ZSH_THEME="agnoster"
ZSH_THEME="bira"
DEFAULT_USER="cox" # then bira won't show user@host
# !!overwrites ZSH_THEME start LiquidPrompt a bash prompt including git status
#[[ $- = *i* ]] && source ~/Documents/GitHub/liquidprompt/liquidprompt
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
plugins=(
alias-tips # if alias exist echo after executing command
alias-finder # show list of aliases with given command
atom # my custom: ESC+a: takes line buffer, prefix 'atom ' and executes
colorize # can colorize cat with ccat
command-not-found # will suggest how this command can be installed
git-prompt # shows git infos on right side of terminal
magic-enter # call commands when hitting enter on empty prompt - see vars
magic-enter-double # my custom: calls MAGIC_ENTER_OTHER_COMMAND
man # my custom: prefixes command with man
sudo # prefixes command with sudo
timer # shows time running commands needed on right prompt - see vars
zsh_reload
)
# Changed variables for plugins
MAGIC_ENTER_OTHER_COMMAND='ls -Alhgo .'
MAGIC_ENTER_GIT_COMMAND='git status -u .'
TIMER_FORMAT='[%d]'
TIMER_PRECISION=0
TIMER_THRESHOLD=2
# runs oh-my-zsh with all plugins and theme
source $ZSH/oh-my-zsh.sh
##### User configuration - oh-my-zsh has no impact here
printf "." # show progress of shell
# all config is HERE in ~/.zshrc
# alias - ALL aliases are found in ~/.alias
source $HOME/.alias
# alias - ALL functions are found in ~/.func
source $HOME/.func
# activate thefuck - a replacing app for misspelled commands
eval $(thefuck --alias)
# path and prompt
# PS1 is commented out as this affects oh-my-zsh theme
#export PS1="\[\033[01;33m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W/ \$\[\033[00m\] "
export PATH="/usr/local/mysql/bin:$PATH"
export PATH="/usr/local/opt/openssl/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
export PATH="/Users/cox/Library/Python/3.8/bin:$PATH"
export PATH="/Users/cox/Library/Python/3.9/bin:$PATH"
# here are symlinks to
## valet: always run nginx in background at *.localhost
### valet -> ../laravel/valet/valet
## symfony: set of php components/framework
### var-dump-server -> ../symfony/var-dumper/Resources/bin/var-dump-server
export PATH="$HOME/.composer/vendor/bin:$PATH" # don't know if needed anymore
export PATH="$HOME/Documents/GitHub/stream-observer:$PATH"
export PATH="$HOME/.scripts:$PATH" # self made small scripts
## zsh features
# key bindings
bindkey '^[[A' up-line-or-search # up arrow
bindkey '^[[B' down-line-or-search # down arrow
bindkey '^[' backward-kill-line # ESC
bindkey -s '\ed' "dirs -v | head -n 10^J" # ESC+d: shows 10 numbered dir stack
# Options - History
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
HISTSIZE=50000
SAVEHIST=10000
setopt extended_history
setopt hist_expire_dups_first
setopt hist_ignore_dups
setopt hist_ignore_space
setopt inc_append_history
setopt share_history
setopt hist_reduce_blanks
setopt hist_find_no_dups
setopt hist_verify
# Options - Changing directories
setopt auto_cd
setopt auto_pushd
unsetopt pushd_ignore_dups
setopt pushd_minus
# Options - Completion
autoload -Uz compinit && compinit
setopt auto_menu
setopt always_to_end
setopt auto_list
setopt auto_param_slash
setopt menu_complete
setopt no_case_glob
setopt correct
#setopt correct_all # not only the first command but arguments too
setopt interactive_comments
zstyle ':completion:*:*:*:*:*' menu select
zstyle ':completion:*' matcher-list 'm:{a-zA-Z-_}={A-Za-z_-}' 'r:|=*' 'l:|=* r:|=*'
zstyle ':completion::complete:*' use-cache 1
zstyle ':completion::complete:*' cache-path ':completion:*' list-colors ''
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
printf ".\n" # show end of shell
No comments to display
No comments to display