Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Last active January 20, 2024 21:56
Show Gist options
  • Save diegopacheco/d57a4840e24c39a93809f427cf5ef3e4 to your computer and use it in GitHub Desktop.
Save diegopacheco/d57a4840e24c39a93809f427cf5ef3e4 to your computer and use it in GitHub Desktop.

Revisions

  1. diegopacheco revised this gist Jan 20, 2024. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    unbind r
    bind r source-file ~/.tmux.conf

    #
    # List of plugins
    #
    @@ -7,6 +10,7 @@ set -g @plugin 'tmux-plugins/tmux-sensible'
    set -g @plugin 'dracula/tmux'
    set -g @plugin 'tmux-plugins/tmux-resurrect'
    set -g @plugin 'tmux-plugins/tmux-continuum'
    #set -g @plugin 'xamut/tmux-weather'

    #
    # set terminal for 256 colors
    @@ -27,6 +31,9 @@ bind-key h select-pane -L
    bind-key j select-pane -D
    bind-key k select-pane -U
    bind-key l select-pane -R
    bind-key : command-prompt
    bind-key [ next-window
    bind-key ] previous-window

    #
    # New session opens with current path
    @@ -68,4 +75,4 @@ bind -n C-M-l "send-keys C-l"
    # ctrl + alt + f open fzf vim alias
    # alias ffind2= $(fzf --preview 'bat --color=always --style=header,grid --line-range :300 {}')
    #
    bind -n C-M-r send-keys 'ffind2' Enter
    bind -n C-M-r send-keys 'ffind2' Enter
  2. diegopacheco revised this gist Jan 17, 2024. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -51,10 +51,21 @@ set -g @dracula-plugins "git cpu-usage ram-usage network-ping weather time"
    set -g @dracula-ping-server "google.com"
    set -g @dracula-ping-rate 5

    #
    # Save and restore tmux session every 15min
    #
    set -g @continuum-restore 'on'

    # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
    run '~/.tmux/plugins/tpm/tpm'

    #
    # ctrl + alt + l clear the screen on console
    #
    bind -n C-M-l "send-keys C-l"

    #
    # ctrl + alt + f open fzf vim alias
    # alias ffind2= $(fzf --preview 'bat --color=always --style=header,grid --line-range :300 {}')
    #
    bind -n C-M-r send-keys 'ffind2' Enter
  3. diegopacheco revised this gist Jan 17, 2024. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -22,11 +22,11 @@ set -g mouse on
    #
    # act like vim
    #
    #setw -g mode-keys vi
    #bind-key h select-pane -L
    #bind-key j select-pane -D
    #bind-key k select-pane -U
    #bind-key l select-pane -R
    setw -g mode-keys vi
    bind-key h select-pane -L
    bind-key j select-pane -D
    bind-key k select-pane -U
    bind-key l select-pane -R

    #
    # New session opens with current path
    @@ -39,7 +39,7 @@ bind c new-window -c "#{pane_current_path}"
    # Dracula Theme configs
    #
    set -g @dracula-show-powerline true
    set -g @dracula-location "San Francisco"
    set -g @dracula-location "Porto Alegre"
    set -g @dracula-show-flags true
    set -g @dracula-cpu-display-load false
    set -g @dracula-show-left-icon hostname
  4. diegopacheco revised this gist Jan 6, 2024. 1 changed file with 7 additions and 71 deletions.
    78 changes: 7 additions & 71 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@
    # List of plugins
    #
    set -g @plugin 'tmux-plugins/tpm'
    set -g @plugin 'tmux-plugins/tmux-yank'
    set -g @plugin 'tmux-plugins/tmux-sensible'
    set -g @plugin 'dracula/tmux'
    set -g @plugin 'tmux-plugins/tmux-resurrect'
    @@ -15,17 +16,17 @@ set -s default-terminal 'tmux-256color'
    #
    # set prefix to CTRL + S and enable mouse.
    #
    set -g prefix C-s
    set -g prefix C-s
    set -g mouse on

    #
    # act like vim
    #
    setw -g mode-keys vi
    bind-key h select-pane -L
    bind-key j select-pane -D
    bind-key k select-pane -U
    bind-key l select-pane -R
    #setw -g mode-keys vi
    #bind-key h select-pane -L
    #bind-key j select-pane -D
    #bind-key k select-pane -U
    #bind-key l select-pane -R

    #
    # New session opens with current path
    @@ -57,68 +58,3 @@ run '~/.tmux/plugins/tpm/tpm'
    # ctrl + alt + l clear the screen on console
    #
    bind -n C-M-l "send-keys C-l"

    #
    # old configs
    #
    #unbind r
    #bind r source-file ~/.tmux.conf
    #
    #set -g prefix C-s
    #set -g mouse on
    #
    #act like vim
    #setw -g mode-keys vi
    #bind-key h select-pane -L
    #bind-key j select-pane -D
    #bind-key k select-pane -U
    #bind-key l select-pane -R
    #
    # New session opens with current path
    #bind '"' split-window -c "#{pane_current_path}"
    #bind % split-window -h -c "#{pane_current_path}"
    #bind c new-window -c "#{pane_current_path}""'"'
    #
    # list of plugins
    #set -g @plugin 'tmux-plugins/tpm'
    #set -g @plugin 'tmux-plugins/tmux-sensible'
    #set -g @plugin 'christoomey/vim-tmux-navigator'
    #set -g @plugin 'tmux-plugins/tmux-yank'
    #set -g @plugin 'dracula/tmux'
    #set -g @plugin 'aaronpowell/tmux-weather'
    #set -g @plugin '2kabhishek/tmux2k'
    #set -g @plugin 'alexanderjeurissen/tmux-world-clock'
    #
    #set -g @tmux2k-left-plugins "git cpu-usage ram-usage"
    #set -g @tmux2k-right-plugins "weather network-ping network time"
    #set -g @tmux2k-show-powerline false
    #set -g @tmux2k-show-fahrenheit true
    #set -g @tmux2k-military-time true
    #set -g @tmux2k-border-contrast true
    #set -g @tmux2k-show-location true
    #set -g @tmux2k-show-timezone true
    #set -g @tmux2k-ping-server "google.com"
    #set -g @tmux2k-ping-rate 5
    #
    #set -g @dracula-show-powerline true
    #set -g @dracula-location "Porto Alegre"
    #set -g @dracula-show-flags true
    #set -g @dracula-cpu-display-load false
    #set -g @dracula-show-left-icon hostname
    #set -g status-position bottom
    #set -g @dracula-show-timezone true
    #set -g @dracula-time-format "%R %F %Z"
    #set -g @dracula-show-location true
    #set -g @dracula-plugins "git cpu-usage ram-usage network-ping weather time"
    #set -g @dracula-ping-server "google.com"
    #set -g @dracula-ping-rate 5
    #set -g @dracula-git-disable-status false
    #
    #set -g @forecast-location "Porto Alegre"
    #set -g status-left '#{forecast} | #H'
    #set -g @forecast-format '%C'+'|'+'Dusk:'+'%d'
    #
    #initialize tpm
    #run -b '~/.tmux/plugins/tpm/tpm'
    #run-shell '/home/diego/.tmux/plugins/tmux-weather/weather.tmux'
    #bind -n C-M-l send-keys clear
  5. diegopacheco revised this gist Jan 6, 2024. No changes.
  6. diegopacheco revised this gist Jan 6, 2024. 1 changed file with 92 additions and 29 deletions.
    121 changes: 92 additions & 29 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -1,31 +1,94 @@
    unbind r
    bind r source-file ~/.tmux.conf
    #
    # List of plugins
    #
    set -g @plugin 'tmux-plugins/tpm'
    set -g @plugin 'tmux-plugins/tmux-sensible'
    set -g @plugin 'dracula/tmux'
    set -g @plugin 'tmux-plugins/tmux-resurrect'
    set -g @plugin 'tmux-plugins/tmux-continuum'

    set -g prefix C-s
    #
    # set terminal for 256 colors
    #
    set -s default-terminal 'tmux-256color'

    #
    # set prefix to CTRL + S and enable mouse.
    #
    set -g prefix C-s
    set -g mouse on

    #act like vim
    #
    # act like vim
    #
    setw -g mode-keys vi
    bind-key h select-pane -L
    bind-key j select-pane -D
    bind-key k select-pane -U
    bind-key l select-pane -R

    #
    # New session opens with current path
    #
    bind '"' split-window -c "#{pane_current_path}"
    bind % split-window -h -c "#{pane_current_path}"
    bind c new-window -c "#{pane_current_path}""'"'
    bind c new-window -c "#{pane_current_path}"

    #
    # Dracula Theme configs
    #
    set -g @dracula-show-powerline true
    set -g @dracula-location "San Francisco"
    set -g @dracula-show-flags true
    set -g @dracula-cpu-display-load false
    set -g @dracula-show-left-icon hostname
    set -g status-position bottom
    set -g @dracula-show-timezone true
    set -g @dracula-time-format "%R %F %Z"
    set -g @dracula-show-location true
    set -g @dracula-plugins "git cpu-usage ram-usage network-ping weather time"
    set -g @dracula-ping-server "google.com"
    set -g @dracula-ping-rate 5

    # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
    run '~/.tmux/plugins/tpm/tpm'

    #
    # ctrl + alt + l clear the screen on console
    #
    bind -n C-M-l "send-keys C-l"

    #
    # old configs
    #
    #unbind r
    #bind r source-file ~/.tmux.conf
    #
    #set -g prefix C-s
    #set -g mouse on
    #
    #act like vim
    #setw -g mode-keys vi
    #bind-key h select-pane -L
    #bind-key j select-pane -D
    #bind-key k select-pane -U
    #bind-key l select-pane -R
    #
    # New session opens with current path
    #bind '"' split-window -c "#{pane_current_path}"
    #bind % split-window -h -c "#{pane_current_path}"
    #bind c new-window -c "#{pane_current_path}""'"'
    #
    # list of plugins
    set -g @plugin 'tmux-plugins/tpm'
    set -g @plugin 'tmux-plugins/tmux-sensible'
    set -g @plugin 'christoomey/vim-tmux-navigator'
    set -g @plugin 'tmux-plugins/tmux-yank'
    set -g @plugin 'dracula/tmux'
    #set -g @plugin 'tmux-plugins/tpm'
    #set -g @plugin 'tmux-plugins/tmux-sensible'
    #set -g @plugin 'christoomey/vim-tmux-navigator'
    #set -g @plugin 'tmux-plugins/tmux-yank'
    #set -g @plugin 'dracula/tmux'
    #set -g @plugin 'aaronpowell/tmux-weather'
    #set -g @plugin '2kabhishek/tmux2k'
    #set -g @plugin 'alexanderjeurissen/tmux-world-clock'
    #
    #set -g @tmux2k-left-plugins "git cpu-usage ram-usage"
    #set -g @tmux2k-right-plugins "weather network-ping network time"
    #set -g @tmux2k-show-powerline false
    @@ -36,26 +99,26 @@ set -g @plugin 'dracula/tmux'
    #set -g @tmux2k-show-timezone true
    #set -g @tmux2k-ping-server "google.com"
    #set -g @tmux2k-ping-rate 5
    set -g @dracula-show-powerline true
    set -g @dracula-location "Porto Alegre"
    set -g @dracula-show-flags true
    set -g @dracula-cpu-display-load false
    set -g @dracula-show-left-icon hostname
    set -g status-position bottom
    set -g @dracula-show-timezone true
    set -g @dracula-time-format "%R %F %Z"
    set -g @dracula-show-location true
    set -g @dracula-plugins "git cpu-usage ram-usage network-ping weather time"
    set -g @dracula-ping-server "google.com"
    set -g @dracula-ping-rate 5
    set -g @dracula-git-disable-status false
    #
    #set -g @dracula-show-powerline true
    #set -g @dracula-location "Porto Alegre"
    #set -g @dracula-show-flags true
    #set -g @dracula-cpu-display-load false
    #set -g @dracula-show-left-icon hostname
    #set -g status-position bottom
    #set -g @dracula-show-timezone true
    #set -g @dracula-time-format "%R %F %Z"
    #set -g @dracula-show-location true
    #set -g @dracula-plugins "git cpu-usage ram-usage network-ping weather time"
    #set -g @dracula-ping-server "google.com"
    #set -g @dracula-ping-rate 5
    #set -g @dracula-git-disable-status false
    #
    #set -g @forecast-location "Porto Alegre"
    #set -g status-left '#{forecast} | #H'
    #set -g @forecast-format '%C'+'|'+'Dusk:'+'%d'

    #
    #initialize tpm
    run -b '~/.tmux/plugins/tpm/tpm'
    #run -b '~/.tmux/plugins/tpm/tpm'
    #run-shell '/home/diego/.tmux/plugins/tmux-weather/weather.tmux'
    bind -n C-M-l send-keys clear
    #bind -n C-M-l send-keys clear
  7. diegopacheco revised this gist Dec 28, 2023. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -57,4 +57,5 @@ set -g @dracula-git-disable-status false

    #initialize tpm
    run -b '~/.tmux/plugins/tpm/tpm'
    #run-shell '/home/diego/.tmux/plugins/tmux-weather/weather.tmux'
    #run-shell '/home/diego/.tmux/plugins/tmux-weather/weather.tmux'
    bind -n C-M-l send-keys clear
  8. diegopacheco revised this gist Dec 28, 2023. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,11 @@ bind-key j select-pane -D
    bind-key k select-pane -U
    bind-key l select-pane -R

    # New session opens with current path
    bind '"' split-window -c "#{pane_current_path}"
    bind % split-window -h -c "#{pane_current_path}"
    bind c new-window -c "#{pane_current_path}""'"'
    # list of plugins
    set -g @plugin 'tmux-plugins/tpm'
    set -g @plugin 'tmux-plugins/tmux-sensible'
  9. diegopacheco revised this gist Dec 18, 2023. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    ❯ cat ~/.tmux.conf
    unbind r
    bind r source-file ~/.tmux.conf

  10. diegopacheco created this gist Dec 18, 2023.
    56 changes: 56 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,56 @@
    ❯ cat ~/.tmux.conf
    unbind r
    bind r source-file ~/.tmux.conf

    set -g prefix C-s
    set -g mouse on

    #act like vim
    setw -g mode-keys vi
    bind-key h select-pane -L
    bind-key j select-pane -D
    bind-key k select-pane -U
    bind-key l select-pane -R

    # list of plugins
    set -g @plugin 'tmux-plugins/tpm'
    set -g @plugin 'tmux-plugins/tmux-sensible'
    set -g @plugin 'christoomey/vim-tmux-navigator'
    set -g @plugin 'tmux-plugins/tmux-yank'
    set -g @plugin 'dracula/tmux'
    #set -g @plugin 'aaronpowell/tmux-weather'
    #set -g @plugin '2kabhishek/tmux2k'
    #set -g @plugin 'alexanderjeurissen/tmux-world-clock'

    #set -g @tmux2k-left-plugins "git cpu-usage ram-usage"
    #set -g @tmux2k-right-plugins "weather network-ping network time"
    #set -g @tmux2k-show-powerline false
    #set -g @tmux2k-show-fahrenheit true
    #set -g @tmux2k-military-time true
    #set -g @tmux2k-border-contrast true
    #set -g @tmux2k-show-location true
    #set -g @tmux2k-show-timezone true
    #set -g @tmux2k-ping-server "google.com"
    #set -g @tmux2k-ping-rate 5

    set -g @dracula-show-powerline true
    set -g @dracula-location "Porto Alegre"
    set -g @dracula-show-flags true
    set -g @dracula-cpu-display-load false
    set -g @dracula-show-left-icon hostname
    set -g status-position bottom
    set -g @dracula-show-timezone true
    set -g @dracula-time-format "%R %F %Z"
    set -g @dracula-show-location true
    set -g @dracula-plugins "git cpu-usage ram-usage network-ping weather time"
    set -g @dracula-ping-server "google.com"
    set -g @dracula-ping-rate 5
    set -g @dracula-git-disable-status false

    #set -g @forecast-location "Porto Alegre"
    #set -g status-left '#{forecast} | #H'
    #set -g @forecast-format '%C'+'|'+'Dusk:'+'%d'

    #initialize tpm
    run -b '~/.tmux/plugins/tpm/tpm'
    #run-shell '/home/diego/.tmux/plugins/tmux-weather/weather.tmux'