2024-01-27 00:16:37 +01:00
|
|
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
|
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
|
|
fi
|
|
|
|
|
|
|
|
export ZSH="$HOME/.oh-my-zsh"
|
|
|
|
|
|
|
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
|
|
|
|
|
|
|
zstyle ':omz:update' mode auto
|
|
|
|
|
|
|
|
plugins=(git sudo zsh-autosuggestions zsh-syntax-highlighting)
|
|
|
|
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
|
2024-03-10 18:34:40 +01:00
|
|
|
export EDITOR='nvim'
|
2024-01-27 00:16:37 +01:00
|
|
|
|
|
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
|
|
|
|
|
|
# Custom
|
|
|
|
|
|
|
|
alias ip="ip -c"
|
2024-02-17 13:37:04 +01:00
|
|
|
alias ls="ls -A --color"
|
2024-02-11 16:38:15 +01:00
|
|
|
alias sl="sl -adew5F"
|
2024-02-26 11:25:32 +01:00
|
|
|
alias ccat="pygmentize -g"
|
2024-03-10 18:34:40 +01:00
|
|
|
alias beep="sh -c 'speaker-test -t sine -f 600 > /dev/null & sleep .5 && pkill speaker-test'"
|
|
|
|
alias nv="nvim"
|
2024-01-27 00:16:37 +01:00
|
|
|
|
|
|
|
cat() {
|
|
|
|
for arg in "$@"; do
|
|
|
|
if [[ $arg == *.md ]]; then
|
|
|
|
mdcat "$arg"
|
|
|
|
else
|
|
|
|
command cat "$arg"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|
2024-02-17 01:53:52 +01:00
|
|
|
|
|
|
|
unsetopt BEEP
|
2024-02-28 08:38:33 +01:00
|
|
|
|
|
|
|
alias beep="sh -c 'speaker-test -t sine -f 600 > /dev/null & sleep .5 && pkill speaker-test'"
|