Fix paths

This commit is contained in:
Ferran Basora 2019-03-06 17:04:05 +00:00
parent e498ef61bf
commit 417b17d89f
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source ~/.bash_profile
CURRENT_PANE_ID=$(tmux list-panes -F "#{pane_id}:#{?pane_active,active,nope}" | grep active | cut -d: -f1) CURRENT_PANE_ID=$(tmux list-panes -F "#{pane_id}:#{?pane_active,active,nope}" | grep active | cut -d: -f1)
COMMAND="tmux-thumbs -a qwerty -r -u --tmux-pane ${CURRENT_PANE_ID}" COMMAND="tmux-thumbs -a qwerty -r -u --tmux-pane ${CURRENT_PANE_ID}"
NEW_ID=$(tmux new-window -P -d -n "[thumbs]" ${COMMAND}) NEW_ID=$(tmux new-window -P -d -n "[thumbs]" ${COMMAND})

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
tmux bind-key space run-shell "/home/ubuntu/dev/tmux-thumbs/tmux-thumbs.sh" CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
tmux bind-key space run-shell "${CURRENT_DIR}/tmux-thumbs.sh"