From 6fc7f49449cb237e1aa37eb1025461fe3ea39589 Mon Sep 17 00:00:00 2001 From: seraphim <18ycm9tx@anonaddy.me> Date: Thu, 27 Aug 2026 11:50:43 +0700 Subject: . --- zshrc/.zshrc | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'zshrc/.zshrc') 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 -- cgit v1.2.3