aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-08-21 19:46:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-08-21 19:46:52 -0300
commitd18a0f5033fa2aa6b47f75f30d48a4ef92e59e51 (patch)
tree73235d993dac6dee92a761102fe938896a729737
parent708c295dc24d663bb0e2cdf179256a270c8e5ca9 (diff)
downloadprofile-d18a0f5033fa2aa6b47f75f30d48a4ef92e59e51.tar.gz
profile-d18a0f5033fa2aa6b47f75f30d48a4ef92e59e51.tar.bz2
Adds suffix param for mkday and mkmonth
-rw-r--r--profile.dot.link18
1 files changed, 16 insertions, 2 deletions
diff --git a/profile.dot.link b/profile.dot.link
index 4ba8466..80137f3 100644
--- a/profile.dot.link
+++ b/profile.dot.link
@@ -130,11 +130,25 @@ scd() {
}
mkday() {
- mkdir `today` && cd `today`
+ suffix="$1"
+ folder="`today`"
+
+ if [ ! -z "$suffix" ]; then
+ folder="$folder-$suffix"
+ fi
+
+ mkdir $folder && cd $folder
}
mkmonth() {
- mkdir `month` && cd `month`
+ suffix="$1"
+ folder="`month`"
+
+ if [ ! -z "$suffix" ]; then
+ folder="$folder-$suffix"
+ fi
+
+ mkdir $folder && cd $folder
}
mkcd() {