mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-01 23:45:45 +02:00
fish: Alias mv to mv -i
This is for peace of mind so we avoid accidentally moving something where something already exists.
This commit is contained in:
parent
6c84ba914c
commit
b0d63997db
@ -35,6 +35,9 @@ fish_default_key_bindings
|
|||||||
alias ls="exa --group-directories-first -I 'lost+found'"
|
alias ls="exa --group-directories-first -I 'lost+found'"
|
||||||
alias tree="exa --group-directories-first --long --tree -I 'node_modules|.git|public|lost+found'"
|
alias tree="exa --group-directories-first --long --tree -I 'node_modules|.git|public|lost+found'"
|
||||||
|
|
||||||
|
# Prevent accidents
|
||||||
|
alias mv="mv -i"
|
||||||
|
|
||||||
# Abbreviations are aliases that expand
|
# Abbreviations are aliases that expand
|
||||||
if not set -q set_abbr
|
if not set -q set_abbr
|
||||||
set -U set_abbr
|
set -U set_abbr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user