Add a dos2unix alias for recursive application

This commit is contained in:
Michael Campagnaro 2024-04-28 23:32:23 -04:00
parent 5715367556
commit 19f90233de

View File

@ -238,6 +238,16 @@ alias cls=clear
alias cpr='cp -r' alias cpr='cp -r'
alias dc='gdc' alias dc='gdc'
alias duh='du -csh' alias duh='du -csh'
dos2unix_all() {
local path="$1"
if [[ $path == "" ]]; then
path="$PWD"
fi
find $path -type f -exec dos2unix '{}' '+'
}
alias d2u='dos2unix_all'
alias e='open_explorer_here "$PWD"' alias e='open_explorer_here "$PWD"'
alias exp='echo "Use e instead."' alias exp='echo "Use e instead."'
alias f='fg' alias f='fg'