File tree Expand file tree Collapse file tree 4 files changed +33
-19
lines changed Expand file tree Collapse file tree 4 files changed +33
-19
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,11 @@ brews:
5959
6060 . #{(share/"alias")}/.rubbi.sh
6161
62- This tool is based on some alias and shell functions and they are core to work.
62+ or the .rubbi.minimal.sh for a minimal setup (rbsh shell function only)
63+
64+ . #{(share/"alias")}/.rubbi.minimal.sh
65+
66+ This tool is based on some alias and shell functions that are core to work.
6367
6468 test : |
6569 system bin/"rubbi-sh", "-version"
Original file line number Diff line number Diff line change 1+ # shellcheck disable=SC2148 disable=SC1090
2+
3+ function rbsh {
4+ cd " $( rubbi-sh) " || exit 1
5+ }
Original file line number Diff line number Diff line change 1- # shellcheck disable=SC2148
1+ # shellcheck disable=SC2148 disable=SC1090
22
3- alias rubsh=" rubbi-sh"
4- alias rubclean=" rubsh -clean"
5- alias rubshow=" rubsh -show"
6- alias rubhelp=" rubsh -help"
7- alias rubbish=" rubcd"
3+ . " ${PWD} /.rubbi.sh"
4+
5+ alias rubsh=' rubbi-sh'
6+ alias rubclean=' rubbi-sh -clean'
7+ alias rubshow=' rubbi-sh -show'
8+ alias rubhelp=' rubbi-sh -help'
9+
10+ # Use the handiest alias you prefer
11+ alias r=' rbsh'
12+ alias rubbish=' rbsh'
13+ alias rubcd=' rbsh'
814
915function rubdel {
10- rubsh -del " ${1} "
16+ rubbi-sh -del " ${1} "
1117}
1218function rubadd {
13- rubsh -add " ${1} "
19+ rubbi-sh -add " ${1} "
1420}
1521function rubuse {
16- rubsh -use " ${1} "
22+ rubbi-sh -use " ${1} "
1723}
1824function rubsel {
19- rubsh -show
25+ rubbi-sh -show
2026 echo
2127 echo -n " Folder to use: "
2228 read -r fn
23- rubsh -use " $fn "
29+ rubbi-sh -use " $fn "
2430 rubcd
2531}
26- function rubcd {
27- cd " $( rubsh) " || exit 1
28- }
Original file line number Diff line number Diff line change 33sudo cp rubbi-sh /usr/local/bin/
44sudo chmod +x /usr/local/bin/rubbi-sh
55
6- echo " This tool is based on some alias and shell functions. "
6+ echo " Please import the .rubbi.sh file in your profile configuration or add its content directly "
77echo " "
8- echo " Please import the dotfiles/.rubbi.sh in your shell's configuration file"
9- echo " or add its content directly."
8+ echo " . $PWD /dotfiles/.rubbi.sh"
109echo " "
11- echo " . $PWD /dotfiles/ .rubbi.sh "
10+ echo " or the .rubbi.minimal.sh for a minimal setup (rbsh shell function only) "
1211echo " "
12+ echo " . $PWD /dotfiles/.rubbi.minimal.sh"
13+ echo " "
14+ echo " This tool is based on some alias and shell functions that are core to work."
You can’t perform that action at this time.
0 commit comments