Fix shellcheck warnings

master
Hektor Misplon 2020-11-13 23:22:53 +01:00
parent b9d0500d4a
commit 811363f3a6
3 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
BRAVE_USER_FLAGS_FILE="$XDG_CONFIG_HOME/brave-flags.conf"
if [[ -f $BRAVE_USER_FLAGS_FILE ]]; then
USER_FLAGS="$(cat $BRAVE_USER_FLAGS_FILE | sed 's/#.*//')"
USER_FLAGS="$(sed 's/#.*//' < "$BRAVE_USER_FLAGS_FILE")"
fi
/usr/bin/brave $@ $USER_FLAGS
/usr/bin/brave "$@" "$USER_FLAGS"

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
cd $HOME/.vimwiki
git a $HOME/.vimwiki
git cm 'Update'
cd "$HOME/.vimwiki" || echo "No .vimwiki directory found"
git a "$HOME/.vimwiki"
git cm 'Update'
git push

View File

@ -11,14 +11,14 @@ SESSION=${SESSION:-"tidal"}
TIDAL_BOOT_PATH=${TIDAL_BOOT_PATH:-""}
GHCI=${GHCI:-""}
args=${@:-$FILE}
args=${*:-$FILE}
# attach if session else create
$TMUX attach-session -t $SESSION || $TMUX new-session -s $SESSION \; \
split-window -h -t $SESSION \; \
$TMUX attach-session -t "$SESSION" || $TMUX new-session -s "$SESSION" \; \
split-window -h -t "$SESSION" \; \
send-keys -t 0 "$VIM $args" C-m \; \
send-keys -t 1 "TIDAL_BOOT_PATH=$TIDAL_BOOT_PATH GHCI=$GHCI tidal" C-m \; \
new-window -t $SESSION:2 -n SuperDirt \; \
new-window -t "$SESSION":2 -n SuperDirt \; \
send-keys -t 0 "cadence-session-start -s && sclang ~/dev/live/tidal/superdirt_startup.scd" C-m \; \
select-window -t 1 \; \
resize-pane -t 1 -x 100 \; \