Olav Reinert
443d806ce7
OBS-URL: https://build.opensuse.org/package/show/utilities/homeshick?expand=0&rev=2
65 lines
2.1 KiB
Diff
65 lines
2.1 KiB
Diff
diff --git a/bin/homeshick b/bin/homeshick
|
|
index 46fd1da..b1e4a6f 100755
|
|
--- a/bin/homeshick
|
|
+++ b/bin/homeshick
|
|
@@ -2,7 +2,7 @@
|
|
|
|
repos="$HOME/.homesick/repos"
|
|
# Include all helper functions. We will include the required command function later on.
|
|
-homeshick=${HOMESHICK_DIR:-$HOME/.homesick/repos/homeshick}
|
|
+homeshick=${HOMESHICK_DIR:-/usr/share/homeshick}
|
|
source "$homeshick/lib/exit_status.sh"
|
|
source "$homeshick/lib/fs.sh"
|
|
source "$homeshick/lib/git.sh"
|
|
diff --git a/bin/homeshick.csh b/bin/homeshick.csh
|
|
index 2814f10..1c2c9a2 100644
|
|
--- a/bin/homeshick.csh
|
|
+++ b/bin/homeshick.csh
|
|
@@ -1,6 +1,6 @@
|
|
# This helper script should be sourced via an alias, e.g.
|
|
#
|
|
-# alias homeshick "source $HOME/.homesick/repos/homeshick/bin/homeshick.csh"
|
|
+# alias homeshick "source /usr/share/homeshick/bin/homeshick.csh"
|
|
#
|
|
if ( "$1" == "cd" && "x$2" != "x" ) then
|
|
if ( -d "$HOME/.homesick/repos/$2/home" ) then
|
|
@@ -12,6 +12,6 @@ else
|
|
if ( $?HOMESHICK_DIR ) then
|
|
$HOMESHICK_DIR/bin/homeshick $*
|
|
else
|
|
- $HOME/.homesick/repos/homeshick/bin/homeshick $*
|
|
+ /usr/share/homeshick/bin/homeshick $*
|
|
endif
|
|
endif
|
|
diff --git a/homeshick.fish b/homeshick.fish
|
|
index 10359ee..51cd0a2 100644
|
|
--- a/homeshick.fish
|
|
+++ b/homeshick.fish
|
|
@@ -1,5 +1,5 @@
|
|
# This script should be sourced in the context of your shell like so:
|
|
-# source $HOME/.homesick/repos/homeshick/homeshick.fish
|
|
+# source /usr/share/homeshick/homeshick.fish
|
|
# Once the homeshick() function is defined, you can type
|
|
# "homeshick cd CASTLE" to enter a castle.
|
|
|
|
@@ -9,6 +9,6 @@ function homeshick
|
|
else if set -q HOMESHICK_DIR
|
|
eval $HOMESHICK_DIR/bin/homeshick $argv
|
|
else
|
|
- eval $HOME/.homesick/repos/homeshick/bin/homeshick $argv
|
|
+ eval /usr/share/homeshick/bin/homeshick $argv
|
|
end
|
|
end
|
|
diff --git a/homeshick.sh b/homeshick.sh
|
|
index e8c2663..797731d 100644
|
|
--- a/homeshick.sh
|
|
+++ b/homeshick.sh
|
|
@@ -7,6 +7,6 @@ function homeshick() {
|
|
if [ "$1" = "cd" ] && [ -n "$2" ]; then
|
|
cd "$HOME/.homesick/repos/$2"
|
|
else
|
|
- "${HOMESHICK_DIR:-$HOME/.homesick/repos/homeshick}/bin/homeshick" "$@"
|
|
+ "${HOMESHICK_DIR:-/usr/share/homeshick}/bin/homeshick" "$@"
|
|
fi
|
|
}
|