comparison .bash_overrides @ 544:ed193fcaa0dc

wip
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 17 Oct 2013 04:37:17 -0700
parents 32b202653753
children 501169756134
comparison
equal deleted inserted replaced
543:f9614844e872 544:ed193fcaa0dc
124 command lsdiff "$@" 124 command lsdiff "$@"
125 fi 125 fi
126 126
127 } 127 }
128 128
129 function mv {
130 num=$#
131 if (( num == 0 ))
132 then
133 command mv "$@"
134 return
135 fi
136 last=${!#}
137 directory=$(dirname ${last})
138 if [[ ! -e "${directory}" ]]
139 then
140 mkdir -p "${directory}"
141 fi
142 command mv "$@"
143 return
144
145 }
146
129 function unlink { 147 function unlink {
130 command unlink `echo $@ | sed 's/\/$//g'` 148 command unlink `echo $@ | sed 's/\/$//g'`
131 } 149 }
132 150