.s/.zshrc

65 lines
1.5 KiB
Bash
Raw Normal View History

# Machine specific config
MACHINE_ZSH=~/scripts/machine-specific-zsh/$(hostname | grep -oh "\w*" | head -n1).zsh
[ -f $MACHINE_ZSH ] && source $MACHINE_ZSH
2023-02-22 16:52:38 -05:00
export GPG_TTY=$(tty)
2023-03-15 13:37:52 -04:00
export PATH=$PATH:$HOME/scripts:$HOME/.local/bin:$HOME/.rowswell/bin
2022-10-26 00:13:43 -04:00
# Print a random ascii arts from ~/ascii-arts
if [ -d "$HOME/ascii-arts" ]
then
echo
echo "======="
logo="$(find $HOME/ascii-arts/* | shuf -n1)"
printf "$(echo $logo | grep -o "[0-9a-zA-Z+\-\.]*$")\n"
echo "======="
printf "$(cat $logo)\n\n"
fi
# Alt+b stops at forwardslashes
backward-kill-dir () {
local WORDCHARS=${WORDCHARS/\/}
zle backward-kill-word
zle -f kill
}
zle -N backward-kill-dir
bindkey '^[^?' backward-kill-dir
2024-02-04 16:10:00 -05:00
bindkey \^K kill-line
2023-02-22 16:52:38 -05:00
# ZSH enhancements
2022-10-26 00:13:43 -04:00
source ~/zsh-stuff/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/zsh-stuff/spaceship-prompt/spaceship.zsh
# History
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory
2023-02-22 16:52:38 -05:00
# Aliases
alias ..="cd .."
alias gc="git checkout"
alias gcm="git commit -S -m"
alias gb="git branch"
alias gbm="git branch -m"
alias ga="git add"
alias gaa="git add ."
alias gpl="git pull"
alias gps="git push"
alias gm="git merge"
alias gss="git status"
alias gsh="git stash"
alias gl="git log"
2023-03-24 17:57:08 -04:00
alias fuckuctl="journalctl --user -fu"
alias fuckctl="journalctl -fu"
2023-02-22 16:52:38 -05:00
alias sbcl="rlwrap sbcl"
2023-03-27 20:58:00 -04:00
alias spt="spt --tick-rate 12"
2024-03-01 13:54:18 -05:00
2024-03-09 16:08:30 -05:00
alias tmux="ssh-agent tmux"
2024-03-09 02:33:59 -05:00
2024-03-01 13:54:18 -05:00
# Wasmer
export WASMER_DIR="/Users/lizzy/.wasmer"
[ -s "$WASMER_DIR/wasmer.sh" ] && source "$WASMER_DIR/wasmer.sh"