From b8251a5695c1906462443b180c05fb44def5cfa9 Mon Sep 17 00:00:00 2001 From: Oliver Atkinson Date: Tue, 30 Apr 2024 13:10:47 -0600 Subject: [PATCH] add file operation aliases --- .config/aliasrc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.config/aliasrc b/.config/aliasrc index c94fe4c..8102ff7 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -1,6 +1,6 @@ #!/bin/sh -alias l=lfcd +# New commands alias clip="xclip -selection clipboard" alias phone="simple-mtpfs" alias bell="paplay /usr/share/sounds/freedesktop/stereo/complete.oga" @@ -16,9 +16,15 @@ alias ffplay="swallow ffplay $@" alias shutdown="shutdown -P now" alias untar="tar -xvf $@" alias cura="cura5 -platformtheme gtk3" +alias cp="cp -iv" +alias mv="mv -iv" +alias rm="rm -vI" -# if lfrun doesn't exist -# alias l=". ranger" +# User lfcd by default (it should exist), fall back +# 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 if [ -x /usr/bin/dircolors ]; then @@ -27,4 +33,3 @@ if [ -x /usr/bin/dircolors ]; then alias grep='grep --color=auto' fi -