From 694e298a8083f3e81435128252e8657fde8de195 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sun, 17 Nov 2019 09:06:44 -0600 Subject: [PATCH] Fix some things --- .editorconfig | 1 + bin/fsw | 5 +++-- shell/tmux/tmux.conf | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.editorconfig b/.editorconfig index b4ba103..e6237fd 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,6 +3,7 @@ root = true [*] end_of_line = lf insert_final_newline = true +trim_trailing_whitespace = true charset = utf-8 indent_style = tab indent_size = 2 diff --git a/bin/fsw b/bin/fsw index 73eb43d..b0906a3 100755 --- a/bin/fsw +++ b/bin/fsw @@ -26,11 +26,11 @@ ${I}Environment: ${I}${I}Some customization options exist using environment variables ${I}${I}${I}due to their uncommon usage. ${I}${I}+ FSW_EVENTS - the list of events to have inotifywait observe - + References: ${I}+ Filter works with grep -P ${I}+ See inotifywait(1) for FSW_EVENTS options. - + Examples: ${I}fsw 'make' '\.c$' ${I}fsw 'bash \$filename' '\.bash$' @@ -62,6 +62,7 @@ inotifywait -m -e "${FSW_EVENTS}" -r "${DIRS[@]}" 2>&1 \ export FSW_DIR="$dir" export FSW_PATH="$dir$filename" export FSW_FILE_EVENTS="$events" + export FSW_EVENT="$events $dir$filename" <<< "$FSW_PATH" grep -P "$FILTER" > /dev/null 2>&1 && eval "${SHELL_COMMAND}" fi done diff --git a/shell/tmux/tmux.conf b/shell/tmux/tmux.conf index 8f6fb33..1f37919 100644 --- a/shell/tmux/tmux.conf +++ b/shell/tmux/tmux.conf @@ -13,7 +13,8 @@ set -g default-terminal "tmux-256color" set-option -g mouse on # honestly not exactly sure? -set -sg escape-time 1 +# set -sg escape-time 1 +set -sg escape-time 0 # show window activity # TODO: this needs to be properly setup