diff options
| author | seraphim <18ycm9tx@anonaddy.me> | 2026-08-27 11:50:43 +0700 |
|---|---|---|
| committer | seraphim <18ycm9tx@anonaddy.me> | 2026-08-27 11:50:43 +0700 |
| commit | 6fc7f49449cb237e1aa37eb1025461fe3ea39589 (patch) | |
| tree | ceebc8a65556830627a4546da57e30e72945175e /zshrc | |
| parent | cc7b61a1496d25a100f012300c1121835a9f8177 (diff) | |
.
Diffstat (limited to 'zshrc')
| -rw-r--r-- | zshrc/.zshrc | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/zshrc/.zshrc b/zshrc/.zshrc index 1663488..549ca2b 100644 --- a/zshrc/.zshrc +++ b/zshrc/.zshrc @@ -14,13 +14,13 @@ ZSH_AUTOSUGGEST_STRATEGY=(history completion) # Aliases alias wllpprsw='~/dotfiles-gentoo/niri/.config/niri/theme-switcher.sh' alias drksw='darkman toggle' -alias bft='~/git-cloned/bfetch/bfetch --no-kernel' +alias bft='~/docs/git-cloned/bfetch/bfetch --no-kernel' alias open='xdg-open' alias ls="eza -lha --icons" alias ll="eza -lh --icons" alias la="eza -lha --icons" alias tree="eza --tree --icons" -alias musmnt="sudo mount /dev/sdb1 /mnt/giga && nohup swingmusic >/tmp/swingmusic.log 2>&1 & disown" +alias musmnt="doas mount /dev/sdb1 /mnt/giga && nohup swingmusic >/tmp/swingmusic.log 2>&1 & disown" # Theme wallust() { command wallust run "$@" @@ -47,4 +47,22 @@ export MOZ_ENABLE_WAYLAND=1 export PATH="$HOME/.cargo/bin:$PATH" # Swing Music installation export PATH="/home/seraphim/.local/bin:$PATH" +# go tools (gopls etc.) +export PATH="$HOME/go/bin:$PATH" eval "$(starship init zsh)" + +# zoxide: `z` jumps to frequent/recent dirs and feeds yazi's zoxide plugin +eval "$(zoxide init zsh)" + +# yazi: cd into the last directory on exit +function y() { + local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd + yazi "$@" --cwd-file="$tmp" + if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then + builtin cd -- "$cwd" + fi + rm -f -- "$tmp" +} + +# opencode +export PATH=/home/seraphim/.opencode/bin:$PATH |
