refactor(zsh): replace 'o' alias with function
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m13s
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m13s
This commit is contained in:
parent
a2eb01116a
commit
521474848d
@ -67,11 +67,6 @@
|
|||||||
alias p="wl-paste"
|
alias p="wl-paste"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v open >/dev/null 2>&1 && command -v xdg-open >/dev/null 2>&1; then
|
|
||||||
alias open="xdg-open"
|
|
||||||
alias o="xdg-open"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if command -v systemctl >/dev/null 2>&1; then
|
if command -v systemctl >/dev/null 2>&1; then
|
||||||
alias sysu="systemctl --user"
|
alias sysu="systemctl --user"
|
||||||
alias sys="systemctl"
|
alias sys="systemctl"
|
||||||
@ -108,4 +103,4 @@
|
|||||||
if ! alias img >/dev/null 2>&1 && command -v swappy >/dev/null 2>&1; then
|
if ! alias img >/dev/null 2>&1 && command -v swappy >/dev/null 2>&1; then
|
||||||
alias img="swappy -f -"
|
alias img="swappy -f -"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
@ -191,3 +191,9 @@ e() {
|
|||||||
eval "${EDITOR} ${@}"
|
eval "${EDITOR} ${@}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Open file with default program and detach
|
||||||
|
o() {
|
||||||
|
local in="${@}"
|
||||||
|
xdg-open "${@}" & disown
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user