commit 6864fb4b65be09caa9d194da68c060e579130bb2
parent 9a508fba6664eb1c4f1269ff56298d2819a18d4f
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sat, 19 Jan 2019 17:46:45 -0500
Move executibles to ~/.local/bin.
Diffstat:
4 files changed, 27 insertions(+), 26 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -18,7 +18,8 @@
!.config/rofi/*
!.config/rofi-pass
!.config/rofi-pass/*
-!.scripts
-!.scripts/*
+!.local
+!.local/bin
+!.local/bin/*
!.profile
!.zprofile
\ No newline at end of file
diff --git a/.local/bin/bigmod b/.local/bin/bigmod
@@ -0,0 +1,23 @@
+# Inspired by LARBS (https://larbs.xyz)
+
+[ -z "$dotfilesrepo" ] && dotfilesrepo="ssh://gitea@git.shimmy1996.com:4869/shimmy1996/dotfiles.git"
+
+[ -z "$name" ] && name=shimmy
+
+putgitrepo() { # Downlods a gitrepo $1 and places the files in $2 only overwriting conflicts
+ dialog --infobox "Downloading and installing config files..." 4 60
+ dir=$(mktemp -d)
+ chown -R "$name":wheel "$dir"
+ sudo -u "$name" git clone --depth 1 "$1" "$dir/gitrepo" >/dev/null 2>&1 &&
+ sudo -u "$name" mkdir -p "$2" &&
+ sudo -u "$name" cp -rfT "$dir"/gitrepo "$2"
+ sudo -u "$name" rm -f "$2/README.org"
+ sudo -u "$name" rm -f "$2/LICENCE"
+ sudo -u "$name" chmod -R +x "$2/.local/bin/*"
+ sudo -u "$name" chmod +x "$2/.profile"
+}
+
+# Install the dotfiles in the user's home directory
+putgitrepo "$dotfilesrepo" "/home/$name" || error "Programs have installed, but dotfiles failed to deploy."
+
+dialog --infobox "BIGMOD deployed." 3 20
diff --git a/.profile b/.profile
@@ -2,7 +2,7 @@
# export XKB_DEFAULT_OPTIONS=ctrl:swapcaps
# Adds `~/.scripts` and all subdirectories to $PATH
-export PATH="$PATH:$(du "$HOME/.scripts/" | cut -f2 | tr '\n' ':')"
+export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':')"
# Fcitx fixes
export XMODIFIERS=@im=fcitx
diff --git a/.scripts/bigmod b/.scripts/bigmod
@@ -1,23 +0,0 @@
-# Inspired by LARBS (https://larbs.xyz)
-
-[ -z "$dotfilesrepo" ] && dotfilesrepo="ssh://gitea@git.shimmy1996.com:4869/shimmy1996/dotfiles.git"
-
-[ -z "$name" ] && name=shimmy
-
-putgitrepo() { # Downlods a gitrepo $1 and places the files in $2 only overwriting conflicts
- dialog --infobox "Downloading and installing config files..." 4 60
- dir=$(mktemp -d)
- chown -R "$name":wheel "$dir"
- sudo -u "$name" git clone --depth 1 "$1" "$dir/gitrepo" >/dev/null 2>&1 &&
- sudo -u "$name" mkdir -p "$2" &&
- sudo -u "$name" cp -rfT "$dir"/gitrepo "$2"
- sudo -u "$name" rm -f "$2/README.org"
- sudo -u "$name" rm -f "$2/LICENCE"
- sudo -u "$name" chmod -R +x "$2/.scripts/*"
- sudo -u "$name" chmod -R +x "$2/.profile"
-}
-
-# Install the dotfiles in the user's home directory
-putgitrepo "$dotfilesrepo" "/home/$name" || error "Programs have installed, but dotfiles failed to deploy."
-
-dialog --infobox "BIGMOD deployed." 3 20