diff options
| author | venomade <venomade@venomade.com> | 2026-04-08 15:07:12 +0100 |
|---|---|---|
| committer | venomade <venomade@venomade.com> | 2026-04-08 15:07:12 +0100 |
| commit | d422bc2b77ece72be1098bf05728275ef3306ee5 (patch) | |
| tree | 8b6b6f0da228dc99f36d91cf7841c425963e73f5 /dots/zshrc | |
| parent | a6543a0ba0e5399515e3dbe507a8bd12958839cc (diff) | |
Asahi Bugs - Forked GL is very annoying to deal with - Fairydust branch requires 8GB of RAM for display - AArch64 Linux is not very compatible with much software - DRM and other video related things are buggy/do not work - Updating can often break fairydust
Diffstat (limited to 'dots/zshrc')
| -rw-r--r-- | dots/zshrc | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dots/zshrc b/dots/zshrc new file mode 100644 index 0000000..4d4b507 --- /dev/null +++ b/dots/zshrc @@ -0,0 +1,55 @@ +# Venomade's zshrc + +# source global variables and aliases +[ -f "$HOME/.config/shell/alias" ] && source "$HOME/.config/shell/alias" +[ -f "$HOME/.config/shell/vars" ] && source "$HOME/.config/shell/vars" +[ -f "$HOME/.config/shell/functions" ] && source "$HOME/.config/shell/functions" + +# load modules +zmodload zsh/complist +autoload -U compinit && compinit +autoload -U colors && colors + +# completion +zstyle ':completion:*' menu select +zstyle ':completion:*' special-dirs true +zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} ma=0\;33 + +# options +setopt append_history inc_append_history share_history +setopt auto_menu menu_complete +setopt auto_param_slash +setopt no_case_glob no_case_match +setopt globdots +setopt extended_glob +setopt share_history + +# history +export HISTFILE=~/.zsh_history +export HISTSIZE=10000 +export SAVEHIST=10000 + + +# termtitle +shorten_path() { + local path="${PWD/#$HOME/~}" + local parts=("${(@s:/:)path}") + + if (( ${#parts} > 3 )); then + echo "${parts[1]}/.../${parts[-2]}/${parts[-1]}" + else + echo "$path" + fi +} + +autoload -Uz add-zsh-hook +precmd() { + print -Pn "\e]0;$(shorten_path)\a" +} + +export STARSHIP_CONFIG=~/.config/starship/config.toml +eval "$(starship init zsh)" + +# source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + +bindkey -e |
