Skip to content

Commit a7f9458

Browse files
committed
Add minimal dotfiles
1 parent 27f0f8c commit a7f9458

File tree

4 files changed

+33
-19
lines changed

4 files changed

+33
-19
lines changed

.goreleaser.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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"

dotfiles/.rubbi.minimal.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# shellcheck disable=SC2148 disable=SC1090
2+
3+
function rbsh {
4+
cd "$(rubbi-sh)" || exit 1
5+
}

dotfiles/.rubbi.sh

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
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

915
function rubdel {
10-
rubsh -del "${1}"
16+
rubbi-sh -del "${1}"
1117
}
1218
function rubadd {
13-
rubsh -add "${1}"
19+
rubbi-sh -add "${1}"
1420
}
1521
function rubuse {
16-
rubsh -use "${1}"
22+
rubbi-sh -use "${1}"
1723
}
1824
function 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-
}

install.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
sudo cp rubbi-sh /usr/local/bin/
44
sudo 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"
77
echo ""
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"
109
echo ""
11-
echo " . $PWD/dotfiles/.rubbi.sh"
10+
echo " or the .rubbi.minimal.sh for a minimal setup (rbsh shell function only)"
1211
echo ""
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."

0 commit comments

Comments
 (0)