Many things
This commit is contained in:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user