From 7877d1be13cc7aa82763b75900d806c0156efb87 Mon Sep 17 00:00:00 2001 From: Noah Masur Date: Sat, 10 Apr 2021 13:40:34 -0400 Subject: [PATCH] remove unnecessary tmux junk --- bin/weather_cached | 9 ++++----- scripts/bootstrap | 16 ---------------- tmux/tmux.conf.symlink | 4 +--- 3 files changed, 5 insertions(+), 24 deletions(-) diff --git a/bin/weather_cached b/bin/weather_cached index 22b5edd..639a79e 100755 --- a/bin/weather_cached +++ b/bin/weather_cached @@ -1,12 +1,11 @@ #!/bin/sh CACHE_FILE="$HOME/.tmux/.weather_cache" -CACHE_TIME=$(stat -f %m $CACHE_FILE) +CACHE_TIME="$(stat -f %m "$CACHE_FILE")" NOW_TIME=$(date +%s) TIME_PASSED=$((NOW_TIME-CACHE_TIME)) -if [[ "$TIME_PASSED" -gt "1200" ]] +if [ "$TIME_PASSED" -gt "1200" ] then - curl -m 2 -s wttr.in/$WEATHER_CITY\?format\="%c%t" > $CACHE_FILE + curl -m 2 -s "wttr.in/$WEATHER_CITY?format=%c%t" > "$CACHE_FILE" fi -cat $CACHE_FILE - +cat "$CACHE_FILE" diff --git a/scripts/bootstrap b/scripts/bootstrap index 008e3ec..a3664e4 100755 --- a/scripts/bootstrap +++ b/scripts/bootstrap @@ -70,22 +70,6 @@ setup_tmux() { echo "tmux ✓" } -install_gitmux() { - if ! (which gitmux > /dev/null) - then - printf "gitmux ✕\n\n" - printf "\ninstalling gitmux..." - /bin/bash -c "$(curl -L -o gitmux.tar.gz https://github.com/arl/gitmux/releases/download/v0.7.4/gitmux_0.7.4_macOS_amd64.tar.gz)" - tar -xzf gitmux.tar.gz gitmux - mkdir -p ~/.local/bin - mv gitmux ~/.local/bin/ - rm gitmux.tar.gz - echo "" - fi - - echo "gitmux ✓" -} - setup_poetry() { poetry completions fish > $(brew --prefix)/share/fish/vendor_completions.d/poetry.fish } diff --git a/tmux/tmux.conf.symlink b/tmux/tmux.conf.symlink index 5b9e175..a0df5b4 100644 --- a/tmux/tmux.conf.symlink +++ b/tmux/tmux.conf.symlink @@ -92,17 +92,15 @@ set-window-option -g window-status-separator "" WEATHER='#(weather_cached)' set-option -g status-left "#[fg=colour248, bg=colour241] #S #[fg=colour241, bg=colour237, nobold, noitalics, nounderscore]" -set-option -g status-right "#[fg=colour239, bg=colour237, nobold, nounderscore, noitalics]#[fg=colour246,bg=colour239] %Y-%m-%d  %H:%M #[fg=colour248, bg=colour239, nobold, noitalics, nounderscore]#[fg=colour237, bg=colour248]#(gitmux -cfg .gitmux.conf '#{pane_current_path}') #[fg=colour237, nobold, bg=colour248]$WEATHER #[fg=colour237] " +set-option -g status-right "#[fg=colour239, bg=colour237, nobold, nounderscore, noitalics]#[fg=colour246,bg=colour239] %Y-%m-%d  %H:%M #[fg=colour248, bg=colour239, nobold, noitalics, nounderscore]#[fg=colour237, nobold, bg=colour248] $WEATHER #[fg=colour237] " set-window-option -g window-status-current-format "#[fg=colour237, bg=colour214, nobold, noitalics, nounderscore]#[fg=colour239, bg=colour214] #I #[fg=colour239, bg=colour214, bold] #W #[fg=colour214, bg=colour237, nobold, noitalics, nounderscore]" set-window-option -g window-status-format "#[fg=colour237,bg=colour239,noitalics]#[fg=colour223,bg=colour239] #I #[fg=colour223, bg=colour239] #W #[fg=colour239, bg=colour237, noitalics]" # List of plugins set -g @plugin 'tmux-plugins/tpm' -set -g @plugin 'yardnsm/tmux-1password' # Customize 1pass -bind i run-shell "reset_1p" set -g @1password-copy-to-clipboard 'on' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)