mini cleanup
This commit is contained in:
parent
797784b16f
commit
8fb03380d5
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
DIRNAME="$(dirname "$0")"
|
||||
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
function check_pattern() {
|
||||
echo "beep beep" | grep -e "$1" 2> /dev/null
|
||||
|
@ -12,7 +12,7 @@ function check_pattern() {
|
|||
fi
|
||||
}
|
||||
|
||||
source "$DIRNAME/utils.sh"
|
||||
source "$CURRENT_DIR/utils.sh"
|
||||
|
||||
PATTERNS_LIST=(
|
||||
"((^|^\.|[[:space:]]|[[:space:]]\.|[[:space:]]\.\.|^\.\.)[[:alnum:]~_-]*/[][[:alnum:]_.#$%&+=/@-]*)"
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
DIRNAME="$(dirname "$0")"
|
||||
# Source this file and call `tail -f fingers.log` when you don't know WTF is
|
||||
# going on.
|
||||
|
||||
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
function log() {
|
||||
echo "$1" >> $DIRNAME/../fingers.log
|
||||
echo "$1" >> "$DIRNAME/../fingers.log"
|
||||
}
|
||||
|
|
|
@ -62,7 +62,6 @@ do
|
|||
fi
|
||||
|
||||
if [[ $(has_capitals $input) == "1" ]]; then
|
||||
#TODO wtf spaces?
|
||||
tmux command-prompt -p "fingers-exec:" "run-shell -t $fingers_pane_id \"$CURRENT_DIR/exec.sh '%%' '$result' '${current_pane_id//%}' '${fingers_pane_id//%}'\""
|
||||
else
|
||||
copy_result "$result"
|
||||
|
|
|
@ -4,10 +4,6 @@ function array_join() {
|
|||
local IFS="$1"; shift; echo "$*";
|
||||
}
|
||||
|
||||
function array_concat() {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
function display_message() {
|
||||
local original_display_time=$(tmux show-option -gqv display-time)
|
||||
tmux set-option -g display-time $2
|
||||
|
@ -29,4 +25,3 @@ function pane_exec() {
|
|||
tmux send-keys -t $pane_id "$pane_command"
|
||||
tmux send-keys -t $pane_id Enter
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue