83 lines
2.4 KiB
Django/Jinja
83 lines
2.4 KiB
Django/Jinja
# Path to your oh-my-zsh installation.
|
|
export ZSH="$HOME/.oh-my-zsh"
|
|
|
|
ZSH_THEME="agnoster"
|
|
|
|
# Which plugins would you like to load?
|
|
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
|
|
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
|
# Add wisely, as too many plugins slow down shell startup.
|
|
plugins=(
|
|
git
|
|
sudo
|
|
colored-man-pages
|
|
copydir
|
|
cp
|
|
jump
|
|
tmux
|
|
docker
|
|
docker-compose
|
|
)
|
|
|
|
ZSH_DISABLE_COMPFIX="true"
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
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
|
|
|
|
# Changing directories
|
|
setopt auto_cd
|
|
setopt auto_pushd
|
|
unsetopt pushd_ignore_dups
|
|
setopt pushdminus
|
|
|
|
# Completion
|
|
setopt auto_menu
|
|
setopt always_to_end
|
|
setopt complete_in_word
|
|
unsetopt flow_control
|
|
unsetopt menu_complete
|
|
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 $ZSH_CACHE_DIR
|
|
zstyle ':completion:*' list-colors ''
|
|
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
|
|
|
|
# Other
|
|
setopt prompt_subst
|
|
|
|
################################################################
|
|
# ZSH #
|
|
################################################################
|
|
|
|
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
|
|
################################################################
|
|
# ALIASES #
|
|
################################################################
|
|
alias ls="exa"
|
|
alias ll="exa -l"
|
|
alias pbat="bat -Pp"
|
|
alias vsource="source .venv/bin/activate"
|
|
alias size='du -c -h -d 1 | sort -h'
|
|
|
|
################################################################
|
|
# PATH #
|
|
################################################################
|
|
export PATH="$PATH:/usr/sbin"
|
|
export PATH="$HOME/.local/bin:$PATH"
|
|
|
|
################################################################
|
|
# RUST #
|
|
################################################################
|
|
export PATH="{{ default_user_home }}/.cargo/bin:$PATH"
|