add file operation aliases

This commit is contained in:
Oliver Atkinson 2024-04-30 13:10:47 -06:00
parent 87bc2b297c
commit b8251a5695

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
alias l=lfcd # New commands
alias clip="xclip -selection clipboard" alias clip="xclip -selection clipboard"
alias phone="simple-mtpfs" alias phone="simple-mtpfs"
alias bell="paplay /usr/share/sounds/freedesktop/stereo/complete.oga" alias bell="paplay /usr/share/sounds/freedesktop/stereo/complete.oga"
@ -16,9 +16,15 @@ alias ffplay="swallow ffplay $@"
alias shutdown="shutdown -P now" alias shutdown="shutdown -P now"
alias untar="tar -xvf $@" alias untar="tar -xvf $@"
alias cura="cura5 -platformtheme gtk3" alias cura="cura5 -platformtheme gtk3"
alias cp="cp -iv"
alias mv="mv -iv"
alias rm="rm -vI"
# if lfrun doesn't exist # User lfcd by default (it should exist), fall back
# alias l=". ranger" # to ranger if lfcd isn't found. IDK why you wouldn't
# have either
[ -x "$(command -v ranger)"] && alias l=". ranger"
[ -x "$(command -v lfcd)" ] && alias l="lfcd"
# enable color support of ls and also add handy aliases # enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then if [ -x /usr/bin/dircolors ]; then
@ -27,4 +33,3 @@ if [ -x /usr/bin/dircolors ]; then
alias grep='grep --color=auto' alias grep='grep --color=auto'
fi fi