mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +00:00
remove unnecessary tmux junk
This commit is contained in:
parent
cd8fd18427
commit
7877d1be13
@ -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"
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user