mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-06-30 17:22:02 +00:00
Move zsh to stow
This commit is contained in:
10
zsh/.zprofile
Normal file
10
zsh/.zprofile
Normal 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
44
zsh/.zshrc
Normal 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
|
Reference in New Issue
Block a user