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