Many things

This commit is contained in:
2025-11-11 22:03:07 +00:00
parent 9e2e5190a7
commit ddcd4c83f4
8 changed files with 137 additions and 7 deletions

View File

@@ -97,9 +97,9 @@ alias \
alias \
sail='[ -f sail ] && sh sail || sh vendor/bin/sail' \
yi="yarn install" \
y="yarn" \
yr="yarn" \
ci="composer install" \
c="composer" \
cm="composer" \
tk="go-task" \
mux="tmuxinator" \
mex="tmuxinator stop-all" \
@@ -173,6 +173,15 @@ function git_main_branch() {
echo master
}
# Yazi shortcut that allows setting the current working directory on exit
function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
yazi "$@" --cwd-file="$tmp"
IFS= read -r -d '' cwd < "$tmp"
[ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd"
rm -f -- "$tmp"
}
# Git aliases
alias \
g="git" \