22 lines
504 B
Bash
22 lines
504 B
Bash
export EDITOR="nvim"
|
|
export DOTNET_ROOT="/usr/local/share/dotnet"
|
|
alias py="python3"
|
|
alias pip="python3 -m pip"
|
|
alias border="sh ~/dotfiles/yabai/.config/yabai/border.sh"
|
|
alias ts="tailscale"
|
|
alias fetch="fastfetch"
|
|
eval "$(starship 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"
|
|
}
|