-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
33 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters