merge: work

This commit is contained in:
AngeD 2022-09-27 11:28:45 +02:00
commit 17979e11e3
4 changed files with 14 additions and 8 deletions

View file

@ -12,8 +12,8 @@ alias wconf="$EDITOR $HOME/.config/sway"
alias zshconf="$EDITOR $ZDOTDIR/.zshrc && . $ZDOTDIR/.zshrc"
function fnalias() {
# alias alias_cmd='cmd'
cmd="$(alias "$2")"
shell="$(ps -q "$$" -o 'comm=')"
if [ -n "$cmd" ]; then
# remove everything before and including the first =
@ -24,7 +24,8 @@ function fnalias() {
cmd="$2"
fi
env "$1" "$cmd" "${@:3}"
$shell -c "$1 $(echo "$cmd" | sed 's/--color=.\+/--color=force/') ${@:3}"
}
alias watch='fnalias watch'
alias watch='fnalias "watch -c"'
alias xargs='fnalias xargs'