aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-03-15 13:27:37 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-03-15 13:27:37 -0300
commit20f31af275244aa4018f822686290d1377eae29a (patch)
tree1b606e5026e530b213ea6c2eadefded109fc1e07
parentbd0373c42cb292126b7d532328bd5ffbe1fd48cb (diff)
downloadprofile-20f31af275244aa4018f822686290d1377eae29a.tar.gz
profile-20f31af275244aa4018f822686290d1377eae29a.tar.bz2
Adds mktouch
-rw-r--r--profile.dot.link5
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