Move zsh to stow

This commit is contained in:
2023-11-24 15:47:27 -05:00
parent 2fdf3fab10
commit e2a4b4a3e8
3 changed files with 2 additions and 3 deletions

10
zsh/.zprofile Normal file
View File

@ -0,0 +1,10 @@
sh ~/.config/scripts/setup.sh -nr
# Load user settings from config file.
. ~/.config/settings.conf
if [[ $computer == 'w530' ]]; then
if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi
fi

44
zsh/.zshrc Normal file
View File

@ -0,0 +1,44 @@
HISTFILE=~/.zsh_history
HISTSIZE=99999999
SAVEHIST=99999999
autoload -Uz vcs_info
precmd() { vcs_info }
zstyle ':vcs_info:git:*' formats '%b '
setopt PROMPT_SUBST
PROMPT='%F{white}%n% @%m%f %F{blue}%~%f %F{red}${vcs_info_msg_0_}%f$ '
setopt appendhistory autocd extendedglob nomatch notify
unsetopt beep
bindkey -e
zstyle :compinstall filename '~/.zshrc'
autoload -Uz compinit
compinit
# Text Editor
alias emacs='emacs -nw'
alias e='emacs -nw'
# Other
alias i='sudo dnf install'
alias d='sudo dnf'
alias u='sh ~/.config/scripts/update.sh'
alias dot='cd ~/dotfiles'
alias h='cd ~/git/cacolglazier.com/ && hugo server'
# Git
alias c='git commit -m'
alias a='git add'
alias ga='git add -A'
alias gu='git add -u'
alias s='git status'
alias g='git'
alias p='git pull'
alias gp='git push'
alias gd='git diff $(git rev-parse --abbrev-ref HEAD)'
export TERM=xterm
# Daisy build toolkit
GCC_PATH=~/dev/gcc-arm-none-eabi-9-2020-q2-update/bin
export PATH=$GCC_PATH:$PATH