Skip to content

Instantly share code, notes, and snippets.

@krisek
Last active October 22, 2020 06:41
Show Gist options
  • Save krisek/6cb8ebe23900605602d3c74724a6ad45 to your computer and use it in GitHub Desktop.
Save krisek/6cb8ebe23900605602d3c74724a6ad45 to your computer and use it in GitHub Desktop.
DevOps install
#devops install

curl -L https://get.oh-my.fish | fish
sudo bash -c 'echo /usr/local/bin/fish >> /etc/shells'
chsh -s /usr/local/bin/fish
omf theme bobthefish

git clone https://github.com/jimeh/tmux-themepack.git ~/.tmux-themepack
echo '
set -gqF @themepack-status-right-area-left-format ""
set -gqF @themepack-status-right-area-middle-format ""
set -gqF @themepack-status-right-area-left-format "%H:%M"

source-file "${HOME}/.tmux-themepack/powerline/default/orange.tmuxtheme"
set mouse


bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
bind-key M split-window -h "vim ~/.tmux.conf"

# -- windows & pane creation ---------------------------------------------------

# new window retains current path, possible values are:
#   - true
#   - false (default)
tmux_conf_new_window_retain_current_path=false

# new pane retains current path, possible values are:
#   - true (default)
#   - false
tmux_conf_new_pane_retain_current_path=true

# new pane tries to reconnect ssh sessions (experimental), possible values are:
#   - true
#   - false (default)
tmux_conf_new_pane_reconnect_ssh=false

# prompt for session name when creating a new session, possible values are:
#   - true
#   - false (default)
tmux_conf_new_session_prompt=false


# -- display -------------------------------------------------------------------

# RGB 24-bit colour support (tmux >= 2.2), possible values are:
#  - true
#  - false (default)
tmux_conf_theme_24b_colour=false

# window style
tmux_conf_theme_window_fg='default'
tmux_conf_theme_window_bg='default'

# highlight focused pane (tmux >= 2.1), possible values are:
#   - true
#   - false (default)
tmux_conf_theme_highlight_focused_pane=false


bind -T root Home  \
  set prefix None \;\
  set key-table off \;\
  set status-style "fg=#080808,bg=#FFCACA" \;\
  #set window-status-current-format "#[fg=$color_window_off_status_bg,bg=$color_window_off_status_current_bg]$separator_powerline_right#[default] #I:#W# #[fg=$color_window_off_status_current_bg,bg=$color_window_off_status_bg]$separator_powerline_right#[default]" \;\
  set window-status-current-style "fg=#080808,bold,bg=$color_window_off_status_current_bg" \;\
  if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
  refresh-client -S \;\

bind -T off Home \
  set -u prefix \;\
  set -u key-table \;\
  set -u status-style \;\
  set -u window-status-current-style \;\
  #set -u window-status-current-format \;\
  refresh-client -S

bind -T root C-Tab next-window
bind -T root C-n next-window
bind -T root C-p previous-window
bind -T root C-S-Tab previous-window
bind -T root C-S-t new-window
bind -T root C-S-t new-window

bind Tab next-window
bind n next-window
bind p previous-window
bind S-Tab previous-window
bind S-t new-window
bind S-t new-window
bind m setw mouse

bind  C-x setw synchronize-panes
' > ~/.tmux.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment