diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-03-15 13:27:37 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-03-15 13:27:37 -0300 |
commit | 20f31af275244aa4018f822686290d1377eae29a (patch) | |
tree | 1b606e5026e530b213ea6c2eadefded109fc1e07 | |
parent | bd0373c42cb292126b7d532328bd5ffbe1fd48cb (diff) | |
download | profile-20f31af275244aa4018f822686290d1377eae29a.tar.gz profile-20f31af275244aa4018f822686290d1377eae29a.tar.bz2 |
Adds mktouch
-rw-r--r-- | profile.dot.link | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/profile.dot.link b/profile.dot.link index 41700b0..29d980d 100644 --- a/profile.dot.link +++ b/profile.dot.link @@ -141,6 +141,11 @@ mkcd() { mkdir "$*" && cd "$*" } +mktouch() { + mkdir -p `dirname "$*"` + touch "$*" +} + # Default editor #if [ ! -z "$DISPLAY" ]; then # # Avoid "Avoiding protocol specified" error |