This commit is contained in:
wooshings
2026-10-10 11:48:27 -07:00
parent e37027af8e
commit 5525f6854c
6 changed files with 722 additions and 0 deletions
+23
View File
@@ -7,7 +7,9 @@ alias border="sh ~/dotfiles/yabai/.config/yabai/border.sh"
alias ts="tailscale"
alias fetch="fastfetch"
alias usagi="./usagi"
alias zel="zellij"
eval "$(starship init zsh)"
eval "$(zoxide init zsh)"
function yy() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
@@ -21,3 +23,24 @@ function yy() {
fi
rm -f -- "$tmp"
}
spf() {
os=$(uname -s)
# Linux
if [[ "$os" == "Linux" ]]; then
export SPF_LAST_DIR="${XDG_STATE_HOME:-$HOME/.local/state}/superfile/lastdir"
fi
# macOS
if [[ "$os" == "Darwin" ]]; then
export SPF_LAST_DIR="$HOME/Library/Application Support/superfile/lastdir"
fi
command spf "$@"
[ ! -f "$SPF_LAST_DIR" ] || {
. "$SPF_LAST_DIR"
rm -f -- "$SPF_LAST_DIR" > /dev/null
}
}