Add clean_file_backslash function
This commit is contained in:
parent
2d6166a361
commit
db31b0b08f
4
.zshrc
4
.zshrc
@ -101,6 +101,10 @@ if [[ $(command -v fd) ]]; then
|
|||||||
compdef _p p
|
compdef _p p
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
function clean_file_backslash {
|
||||||
|
for i in *; do new=${i//\\/\/}; newd=$(dirname "$new"); mkdir -p "$newd"; mv "$i" "$new"; done
|
||||||
|
}
|
||||||
|
|
||||||
alias e='$EDITOR'
|
alias e='$EDITOR'
|
||||||
alias s="du -sh"
|
alias s="du -sh"
|
||||||
alias sd="du -hd 1"
|
alias sd="du -hd 1"
|
||||||
|
Loading…
Reference in New Issue
Block a user