From 5239458a0ed44c9ecf503bc54a3cab799531326e Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 17 Nov 2018 15:11:14 +0100 Subject: Add support for external files --- bin/.local/bin/MIMEmbellish | 0 bin/.local/bin/MIMEmbellish.wget | 1 + bin/.local/bin/tmux_attach | 2 +- install_wget | 10 ++++++++++ 4 files changed, 12 insertions(+), 1 deletion(-) delete mode 100644 bin/.local/bin/MIMEmbellish create mode 100644 bin/.local/bin/MIMEmbellish.wget create mode 100644 install_wget diff --git a/bin/.local/bin/MIMEmbellish b/bin/.local/bin/MIMEmbellish deleted file mode 100644 index e69de29..0000000 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" -- cgit v1.2.3