54 lines
1.2 KiB
Bash
54 lines
1.2 KiB
Bash
export EDITOR="hx"
|
|
export DOTNET_ROOT="/usr/local/share/dotnet"
|
|
export PATH="/opt/homebrew/opt/omnisharp:$PATH"
|
|
alias nv="nvim"
|
|
alias py="python3"
|
|
alias pip="python3 -m pip"
|
|
alias border="sh ~/dotfiles/yabai/.config/yabai/border.sh"
|
|
alias ts="tailscale"
|
|
alias fetch="fastfetch"
|
|
alias usagi="./usagi"
|
|
alias zel="zellij"
|
|
alias tmux="tmux -u"
|
|
eval "$(starship init zsh)"
|
|
eval "$(zoxide init zsh)"
|
|
|
|
function yy() {
|
|
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
|
|
if command -v yazi &>/dev/null; then
|
|
yazi "$@" --cwd-file="$tmp"
|
|
else
|
|
nvim .
|
|
fi
|
|
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
|
cd -- "$cwd"
|
|
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
|
|
}
|
|
}
|
|
|
|
# Added by LM Studio CLI (lms)
|
|
export PATH="$PATH:/Users/harper/.lmstudio/bin"
|
|
# End of LM Studio CLI section
|
|
|