From a36c2fcb05a3c8f848f941f1c10ce25cd9c68786 Mon Sep 17 00:00:00 2001 From: Randy Jordan Date: Sun, 3 Nov 2024 14:26:48 -0600 Subject: [PATCH] Zsh config --- .zshrc | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .zshrc diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..b2ec6f0 --- /dev/null +++ b/.zshrc @@ -0,0 +1,37 @@ +autoload -Uz vcs_info +precmd_vcs_info() { vcs_info } +precmd_functions+=( precmd_vcs_info ) +setopt prompt_subst +RPROMPT='${vcs_info_msg_0_}' +# PROMPT='${vcs_info_msg_0_}%# ' +# zstyle ':vcs_info:git:*' formats '%b' + +PS1="%F{green}{%n}%F{blue}@%f%F{cyan}[%m]%f%F{magenta}%0~%f %# " + +export PATH=$PATH:$HOME/sh +export PATH=$PATH:/usr/local/go/bin + +export XDG_DATA_HOME=${XDG_DATA_HOME:="$HOME/.local/share"} +export XDG_CACHE_HOME=${XDG_CACHE_HOME:="$HOME/.cache"} +export XDG_CONFIG_HOME=${XDG_DATA_HOME:="$HOME/.config"} +export XDG_STATE_HOME=${XDG_STATE_HOME:="$HOME/.local/state"} + +alias config='/usr/bin/git --git-dir=$HOME/.dot/ --work-tree=$HOME' +alias ls='ls --color=auto -h' +alias ll='ls -l' +alias la='ls -a' +alias grep='grep --color=auto -i' +alias ..='cd ..' +alias ...='cd ../..' +alias mv='mv -i' +alias cp='cp -i' +alias rm='rm -i' +alias c='clear' +alias untar='tar -xvf' +alias del='shred -n 10 -u -z' +alias gpgk='gpg --list-keys --keyid-format=long' +alias gpgpub='gpg --armor --export' + +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion