From 0d02432e2a6a0c418b766537d93008674e11e01c Mon Sep 17 00:00:00 2001 From: merajjahir Date: Sat, 6 Jan 2024 02:58:39 +0600 Subject: [PATCH 1/5] meraj: added shell function instruction to readme --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 022a8f4..0e949ce 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,24 @@ $HOME/terminal_sunday.sh 1985-06-08 Joe 10 the main thing is that 80 is divisible without a remainder by this number of columns :) +To make to command more easy to remember you can just add a function to your file: + +```bash + +life(){ + $HOME/terminal_sunday.sh yyyy-mm-dd your-name +} + +``` + +after adding this function at the end your your .bashrc file . go to a new terminal window and to run the script type "life" command + +```bash + +life + +``` + ## Credits Inspired by [The Last Sunday](https://chromewebstore.google.com/detail/the-last-sunday-reminder/aiojhapcgfgmiacbbjfgedhlcchmpelh?pli=1) chrome extension. From 326833addceb9b054e28c57fca4464e5c0e0cd28 Mon Sep 17 00:00:00 2001 From: merajjahir Date: Sat, 6 Jan 2024 03:07:49 +0600 Subject: [PATCH 2/5] meraj: updated the readme instructions about the shell function --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e949ce..9c3c5b7 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,10 @@ $HOME/terminal_sunday.sh 1985-06-08 Joe 10 the main thing is that 80 is divisible without a remainder by this number of columns :) -To make to command more easy to remember you can just add a function to your file: +To make to command more easy to remember you can just add a function to your environment variable file +if your using mac then it(environment variable file) should be in your home directory called the .bash_profile +if your using linux ubuntu it(environment variable file) should be in your home directory called the .bashrc +add this code in the bottom of that file : ```bash @@ -62,7 +65,8 @@ life(){ ``` -after adding this function at the end your your .bashrc file . go to a new terminal window and to run the script type "life" command +After adding this function at the end your your .bashrc file . +You can run the script just by typing "life" in your terminal ```bash From 82a892def7f9d14f7fce8c4b50475cb1537aac9a Mon Sep 17 00:00:00 2001 From: merajjahir Date: Sat, 6 Jan 2024 03:10:53 +0600 Subject: [PATCH 3/5] meraj: udpated the instruction about shell function with some backquotes --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9c3c5b7..71858f8 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,8 @@ $HOME/terminal_sunday.sh 1985-06-08 Joe 10 the main thing is that 80 is divisible without a remainder by this number of columns :) To make to command more easy to remember you can just add a function to your environment variable file -if your using mac then it(environment variable file) should be in your home directory called the .bash_profile -if your using linux ubuntu it(environment variable file) should be in your home directory called the .bashrc +> If your using mac then it(environment variable file) should be in your home directory called the .bash_profile +> If your using linux ubuntu it(environment variable file) should be in your home directory called the .bashrc add this code in the bottom of that file : ```bash From bbe4f1b35e03bb93c17028bf619dd22f5a05f579 Mon Sep 17 00:00:00 2001 From: merajjahir Date: Sat, 6 Jan 2024 03:13:02 +0600 Subject: [PATCH 4/5] meraj: fixed the Blockquotes --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 71858f8..fc32040 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,9 @@ $HOME/terminal_sunday.sh 1985-06-08 Joe 10 the main thing is that 80 is divisible without a remainder by this number of columns :) To make to command more easy to remember you can just add a function to your environment variable file -> If your using mac then it(environment variable file) should be in your home directory called the .bash_profile -> If your using linux ubuntu it(environment variable file) should be in your home directory called the .bashrc +> If your using mac then it(environment variable file) should be in your home directory called the .bash_profile. +> If your using linux ubuntu it(environment variable file) should be in your home directory called the .bashrc. + add this code in the bottom of that file : ```bash From ea5b53fb446a1d6480b0121cfa69d320cf7fce75 Mon Sep 17 00:00:00 2001 From: merajjahir Date: Sat, 6 Jan 2024 03:17:25 +0600 Subject: [PATCH 5/5] meraj: fixed Blockquotes --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fc32040..37b942b 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,10 @@ $HOME/terminal_sunday.sh 1985-06-08 Joe 10 the main thing is that 80 is divisible without a remainder by this number of columns :) To make to command more easy to remember you can just add a function to your environment variable file -> If your using mac then it(environment variable file) should be in your home directory called the .bash_profile. -> If your using linux ubuntu it(environment variable file) should be in your home directory called the .bashrc. + +> If your using mac then it(environment variable file) should be in your home directory called the .bash_profile + +> If your using linux ubuntu it(environment variable file) should be in your home directory called the .bashrc add this code in the bottom of that file :