adding oh-my-zsh for root user
This commit is contained in:
82
roles/shell/templates/.zshrc.root.j2
Normal file
82
roles/shell/templates/.zshrc.root.j2
Normal file
@@ -0,0 +1,82 @@
|
||||
# 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=/usr/sbin:$PATH
|
||||
export PATH="$PATH:$HOME/.local/bin"
|
||||
|
||||
################################################################
|
||||
# RUST #
|
||||
################################################################
|
||||
export PATH="{{ default_user_home }}/.cargo/bin:$PATH"
|
||||
Reference in New Issue
Block a user