aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2023-09-18 15:58:31 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2023-09-18 15:58:31 +0200
commit4bb5caa01bfe432cbd1e8d85622482695eccb322 (patch)
treeb78a56d4c56dcf9aa03f10e6c3e4d8a97b7ec1dc
parentf05a7d866bb39f82988f5cc63bee9d86626e03bb (diff)
downloaddotfiles-4bb5caa01bfe432cbd1e8d85622482695eccb322.tar.gz
dotfiles-4bb5caa01bfe432cbd1e8d85622482695eccb322.zip
Added binaries to be globally installed
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
-rwxr-xr-xinstall.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 8c5f3e8..e809430 100755
--- a/install.sh
+++ b/install.sh
@@ -46,6 +46,15 @@ for file in $(find "$(pwd)" -mindepth 1 -maxdepth 1 ! \( $ignore \)); do
done
##
+# Some binaries are good to be installed globally.
+
+for i in bin/zypper-* e; do
+ if [ ! -f "/usr/bin/$(basename $i)" ]; then
+ sudo ln -s "$(readlink -f $i)" "/usr/bin/$(basename $i)"
+ fi
+done
+
+##
# And now let's go for the exceptional cases.
# Link the global.gitignore file