dotfiles/.zshrc
2023-02-06 17:53:57 -05:00

68 lines
1.6 KiB
Bash

# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=500
SAVEHIST=500
setopt HIST_FIND_NO_DUPS
unsetopt autocd
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/michael/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Add highlighting
#source /home/michael/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
(( ${+ZSH_HIGHLIGHT_STYLES} )) || typeset -A ZSH_HIGHLIGHT_STYLES
ZSH_HIGHLIGHT_STYLES[path]=none
ZSH_HIGHLIGHT_STYLES[path_prefix]=none
# Add autocomplete
autoload -U compinit; compinit
autoload -Uz promptinit
setopt prompt_subst
autoload -Uz vcs_info
zstyle ':vcs_info:git*' formats \
'%F{5}%F{3} %F{5}[%F{2}%b%F{5}]%f '
zstyle ':vcs_info:*' enable git cvs svn
#zstyle ':vcs_info:git*' formats "%b [%u/%c] "
# or use pre_cmd, see man zshcontrib
vcs_info_wrapper() {
vcs_info
if [ -n "$vcs_info_msg_0_" ]; then
echo "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del"
fi
}
promptinit
PROMPT="[%F{001}%n%F{reset}] %F{069}%1~%F{reset} > "
RPROMPT=$'$(vcs_info_wrapper) %h | %T'
export PATH="/usr/sbin:/home/$USER/.local/bin:$PATH"
bindkey '\e[F' end-of-line
bindkey '\e[H' beginning-of-line
bindkey '^[[3~' delete-char
# ALIASES
alias k="kubectl"
alias d="docker"
alias dc="docker compose"
alias docker-compose="docker compose"
alias dl="curl -LOJ"
alias outline="/home/michael/Applications/Outline-Client.AppImage 1>/dev/null 2>/dev/null &"
alias la="ls -la --color=auto"
alias ls="ls --color=auto"
tmp(){
cd $(mktemp -d)
}
# ALIASES
fastfetch