fish: only source aliases if interactive
This commit is contained in:
parent
649725f483
commit
d3413eee28
@ -1,5 +1,6 @@
|
||||
# dynamic swallow (dwm patch)
|
||||
function swal
|
||||
return
|
||||
if command -v dwmswallow > /dev/null
|
||||
dwmswallow "$WINDOWID" $argv
|
||||
end
|
||||
@ -7,6 +8,10 @@ end
|
||||
|
||||
alias mpv='swal -c mpv; command mpv'
|
||||
|
||||
# prevent clobbering files
|
||||
alias mv='mv -n'
|
||||
alias cp='cp -n'
|
||||
|
||||
# run this before opening, e.g., mpv or zathura
|
||||
abbr -a -- ds swal;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user