Skip to content

Commit

Permalink
Add minimal dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jotadrilo committed Jun 17, 2019
1 parent 27f0f8c commit a7f9458
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 19 deletions.
6 changes: 5 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ brews:
. #{(share/"alias")}/.rubbi.sh
This tool is based on some alias and shell functions and they are core to work.
or the .rubbi.minimal.sh for a minimal setup (rbsh shell function only)
. #{(share/"alias")}/.rubbi.minimal.sh
This tool is based on some alias and shell functions that are core to work.
test: |
system bin/"rubbi-sh", "-version"
5 changes: 5 additions & 0 deletions dotfiles/.rubbi.minimal.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# shellcheck disable=SC2148 disable=SC1090

function rbsh {
cd "$(rubbi-sh)" || exit 1
}
31 changes: 17 additions & 14 deletions dotfiles/.rubbi.sh
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
# shellcheck disable=SC2148
# shellcheck disable=SC2148 disable=SC1090

alias rubsh="rubbi-sh"
alias rubclean="rubsh -clean"
alias rubshow="rubsh -show"
alias rubhelp="rubsh -help"
alias rubbish="rubcd"
. "${PWD}/.rubbi.sh"

alias rubsh='rubbi-sh'
alias rubclean='rubbi-sh -clean'
alias rubshow='rubbi-sh -show'
alias rubhelp='rubbi-sh -help'

# Use the handiest alias you prefer
alias r='rbsh'
alias rubbish='rbsh'
alias rubcd='rbsh'

function rubdel {
rubsh -del "${1}"
rubbi-sh -del "${1}"
}
function rubadd {
rubsh -add "${1}"
rubbi-sh -add "${1}"
}
function rubuse {
rubsh -use "${1}"
rubbi-sh -use "${1}"
}
function rubsel {
rubsh -show
rubbi-sh -show
echo
echo -n "Folder to use: "
read -r fn
rubsh -use "$fn"
rubbi-sh -use "$fn"
rubcd
}
function rubcd {
cd "$(rubsh)" || exit 1
}
10 changes: 6 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
sudo cp rubbi-sh /usr/local/bin/
sudo chmod +x /usr/local/bin/rubbi-sh

echo "This tool is based on some alias and shell functions."
echo " Please import the .rubbi.sh file in your profile configuration or add its content directly"
echo ""
echo "Please import the dotfiles/.rubbi.sh in your shell's configuration file"
echo "or add its content directly."
echo " . $PWD/dotfiles/.rubbi.sh"
echo ""
echo " . $PWD/dotfiles/.rubbi.sh"
echo " or the .rubbi.minimal.sh for a minimal setup (rbsh shell function only)"
echo ""
echo " . $PWD/dotfiles/.rubbi.minimal.sh"
echo ""
echo " This tool is based on some alias and shell functions that are core to work."

0 comments on commit a7f9458

Please sign in to comment.