diff options
author | Urbain Vaes <urbain@vaes.uk> | 2018-11-17 15:11:14 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2018-11-17 15:11:14 +0100 |
commit | 5239458a0ed44c9ecf503bc54a3cab799531326e (patch) | |
tree | 8b523239571ddd636f62c5edb99d49f5c751f4ca | |
parent | 93ec8a8832241455ed7d2e06b7a5b94d75148b39 (diff) |
Add support for external files
-rw-r--r-- | bin/.local/bin/MIMEmbellish | 0 | ||||
-rw-r--r-- | bin/.local/bin/MIMEmbellish.wget | 1 | ||||
-rwxr-xr-x | bin/.local/bin/tmux_attach | 2 | ||||
-rw-r--r-- | install_wget | 10 |
4 files changed, 12 insertions, 1 deletions
diff --git a/bin/.local/bin/MIMEmbellish b/bin/.local/bin/MIMEmbellish deleted file mode 100644 index e69de29..0000000 --- a/bin/.local/bin/MIMEmbellish +++ /dev/null diff --git a/bin/.local/bin/MIMEmbellish.wget b/bin/.local/bin/MIMEmbellish.wget new file mode 100644 index 0000000..c361dea --- /dev/null +++ b/bin/.local/bin/MIMEmbellish.wget @@ -0,0 +1 @@ +https://raw.githubusercontent.com/oblitum/dotfiles/ArchLinux/.local/bin/MIMEmbellish diff --git a/bin/.local/bin/tmux_attach b/bin/.local/bin/tmux_attach index 25d8f12..b7e7ce9 100755 --- a/bin/.local/bin/tmux_attach +++ b/bin/.local/bin/tmux_attach @@ -12,7 +12,7 @@ SESSION=$(echo "$UNION" | dmenu -i -p "Session" | tr -d '[:space:]') # `command -v` to check that i3-msg is a command ! grep -Fxq "$SESSION" <(echo "$ATTACHED_SESSIONS") \ && command -v i3-msg \ - && "$HOME"/bin/workspace gw "$SESSION" + && "$HOME"/.local/bin/workspace gw "$SESSION" grep -Fxq "$SESSION" <(echo "$TMUXINATOR") \ && COMMAND="tmuxinator start $SESSION" \ diff --git a/install_wget b/install_wget new file mode 100644 index 0000000..f21bfa7 --- /dev/null +++ b/install_wget @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +find . -type f -name "*.wget" | \ + while read -r file; do + destination=$HOME/$(echo "${file%.*}" | sed 's#\./[^/]*/##') + wget "$(cat "$file")" -O "$destination" + if [[ "$file" == ./bin/* ]]; then + chmod +x "$destination" + fi + done && echo "Installation successful" |