Add a dos2unix alias for recursive application
This commit is contained in:
parent
5715367556
commit
19f90233de
10
.aliases
10
.aliases
|
@ -238,6 +238,16 @@ alias cls=clear
|
|||
alias cpr='cp -r'
|
||||
alias dc='gdc'
|
||||
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 exp='echo "Use e instead."'
|
||||
alias f='fg'
|
||||
|
|
Loading…
Reference in New Issue
Block a user