aboutsummaryrefslogtreecommitdiff
path: root/profile.dot.link
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-08-28 14:20:23 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-08-28 14:20:23 -0300
commitf4e5c6187221c41eb19ce957e9e97f5560b5bf13 (patch)
treeab4d26fa0ee296a8f19bd035c626d8cb822ba953 /profile.dot.link
parente6be12b75301162e5afd107cc3e9744c160979e2 (diff)
downloadprofile-f4e5c6187221c41eb19ce957e9e97f5560b5bf13.tar.gz
profile-f4e5c6187221c41eb19ce957e9e97f5560b5bf13.tar.bz2
Feat: now and mknow commands
Diffstat (limited to 'profile.dot.link')
-rw-r--r--profile.dot.link11
1 files changed, 11 insertions, 0 deletions
diff --git a/profile.dot.link b/profile.dot.link
index 2b502f0..81253fd 100644
--- a/profile.dot.link
+++ b/profile.dot.link
@@ -165,6 +165,17 @@ scd() {
ttitle `basename $*` > /dev/null 2>&1
}
+mknow() {
+ suffix="$1"
+ folder="`now`"
+
+ if [ ! -z "$suffix" ]; then
+ folder="$folder-$suffix"
+ fi
+
+ mkdir $folder && cd $folder
+}
+
mkday() {
suffix="$1"
folder="`today`"