Fix some things
This commit is contained in:
parent
6c7d60c00f
commit
694e298a80
3 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
5
bin/fsw
5
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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue