stuff
This commit is contained in:
1 parent
97150900a5
commit
d648a271cf
4 files changed
+11
-38
No files matched your search
@@ -1,8 +1,9 @@
|
|||||||
export TERM=xterm-256color
|
export TERM=xterm-256color
|
||||||
export ZSH_TMUX_AUTOSTART=true
|
export ZSH_TMUX_AUTOSTART=${ZSH_TMUX_AUTOSTART:-true}
|
||||||
export ZSH_TMUX_FIXTERM=false
|
export ZSH_TMUX_FIXTERM=false
|
||||||
|
|
||||||
export PATH=~/.npm-global/bin:$PATH
|
# export PATH=~/.npm-global/bin:$PATH
|
||||||
|
export PATH="$(yarn global bin):~/.local/bin:$PATH"
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
# Path to your oh-my-zsh installation.
|
||||||
export ZSH=~/.oh-my-zsh
|
export ZSH=~/.oh-my-zsh
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ bind-key C-a last-window
|
|||||||
bind c new-window -c "#{pane_current_path}"
|
bind c new-window -c "#{pane_current_path}"
|
||||||
|
|
||||||
# basic settings
|
# basic settings
|
||||||
set -g history-limit 30000
|
set -g history-limit 3000
|
||||||
set-option -g default-shell /usr/bin/zsh
|
set-option -g default-shell /usr/bin/zsh
|
||||||
# set-window-option -g utf8 on
|
# set-window-option -g utf8 on
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
@@ -47,8 +47,7 @@ set-option -g status-left-length 0
|
|||||||
set-option -g status-right-length 80
|
set-option -g status-right-length 80
|
||||||
set-option -g status-left ''
|
set-option -g status-left ''
|
||||||
set-option -g status-right '#[fg=blue,bold]#H #[fg=green,bold]|#[fg=black,bold]#(uptime | rev | cut -d":" -f1 | rev | sed s/,//g ) #[fg=green,bold]| #[fg=blue,bold]%d.%m.%y %H:%M'
|
set-option -g status-right '#[fg=blue,bold]#H #[fg=green,bold]|#[fg=black,bold]#(uptime | rev | cut -d":" -f1 | rev | sed s/,//g ) #[fg=green,bold]| #[fg=blue,bold]%d.%m.%y %H:%M'
|
||||||
set-window-option -g window-status-current-fg black
|
set -g window-status-current-style bg=black,fg=green
|
||||||
set-window-option -g window-status-current-bg green
|
|
||||||
|
|
||||||
# clock
|
# clock
|
||||||
set-window-option -g clock-mode-colour cyan
|
set-window-option -g clock-mode-colour cyan
|
||||||
|
|||||||
+5
-33
@@ -6,52 +6,26 @@ setw -g aggressive-resize on
|
|||||||
# command prefix
|
# command prefix
|
||||||
unbind C-b
|
unbind C-b
|
||||||
set -g prefix C-s
|
set -g prefix C-s
|
||||||
bind s send-prefix
|
bind a send-prefix
|
||||||
bind-key C-s last-window
|
bind-key C-s last-window
|
||||||
|
|
||||||
# new window with current pwd
|
# new window with current pwd
|
||||||
bind c new-window -c "#{pane_current_path}"
|
bind c new-window -c "#{pane_current_path}"
|
||||||
|
|
||||||
# basic settings
|
# basic settings
|
||||||
set -g history-limit 30000
|
set -g history-limit 3000
|
||||||
set-option -g default-shell /usr/bin/zsh
|
set-option -g default-shell /usr/bin/zsh
|
||||||
set-window-option -g utf8 on
|
# set-window-option -g utf8 on
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
|
|
||||||
# vi mode
|
|
||||||
set-window-option -g mode-keys vi
|
|
||||||
bind-key -t vi-copy 'v' begin-selection
|
|
||||||
bind-key -t vi-copy 'y' copy-selection
|
|
||||||
|
|
||||||
# escape mode
|
# escape mode
|
||||||
unbind [
|
unbind [
|
||||||
bind Escape copy-mode
|
bind Escape copy-mode
|
||||||
set -s escape-time 0
|
set -s escape-time 0
|
||||||
|
|
||||||
# switch windows
|
|
||||||
bind -r j previous-window
|
|
||||||
bind -r k next-window
|
|
||||||
bind -r h swap-window -t -1
|
|
||||||
bind -r l swap-window -t +1
|
|
||||||
|
|
||||||
# fixes redraw bugs
|
# fixes redraw bugs
|
||||||
set -g default-terminal screen-256color
|
set -g default-terminal screen-256color
|
||||||
|
|
||||||
# splitting
|
|
||||||
unbind %
|
|
||||||
unbind '"'
|
|
||||||
bind = split-window -h
|
|
||||||
bind - split-window -v
|
|
||||||
bind -r C-h run "tmux select-pane -L"
|
|
||||||
bind -r C-j run "tmux select-pane -D"
|
|
||||||
bind -r C-k run "tmux select-pane -U"
|
|
||||||
bind -r C-l run "tmux select-pane -R"
|
|
||||||
bind [ resize-pane -L 5
|
|
||||||
bind ] resize-pane -R 5
|
|
||||||
bind < resize-pane -D 5
|
|
||||||
bind > resize-pane -U 5
|
|
||||||
bind-key b command-prompt -p "create pane from:" "join-pane -s ':%%'"
|
|
||||||
bind-key v command-prompt -p "send pane to:" "join-pane -t ':%%'"
|
|
||||||
|
|
||||||
# window title
|
# window title
|
||||||
set-option -g set-titles on
|
set-option -g set-titles on
|
||||||
@@ -64,8 +38,7 @@ set -g visual-activity on
|
|||||||
set -g visual-bell off
|
set -g visual-bell off
|
||||||
|
|
||||||
# status bar
|
# status bar
|
||||||
bind-key z set -g status
|
# set-option -g status-utf8 on
|
||||||
set-option -g status-utf8 on
|
|
||||||
set-option -g status-justify left
|
set-option -g status-justify left
|
||||||
set-option -g status-bg black
|
set-option -g status-bg black
|
||||||
set-option -g status-fg cyan
|
set-option -g status-fg cyan
|
||||||
@@ -74,8 +47,7 @@ set-option -g status-left-length 0
|
|||||||
set-option -g status-right-length 80
|
set-option -g status-right-length 80
|
||||||
set-option -g status-left ''
|
set-option -g status-left ''
|
||||||
set-option -g status-right '#[fg=blue,bold]#H #[fg=green,bold]|#[fg=black,bold]#(uptime | rev | cut -d":" -f1 | rev | sed s/,//g ) #[fg=green,bold]| #[fg=blue,bold]%d.%m.%y %H:%M'
|
set-option -g status-right '#[fg=blue,bold]#H #[fg=green,bold]|#[fg=black,bold]#(uptime | rev | cut -d":" -f1 | rev | sed s/,//g ) #[fg=green,bold]| #[fg=blue,bold]%d.%m.%y %H:%M'
|
||||||
set-window-option -g window-status-current-fg black
|
set -g window-status-current-style bg=black,fg=green
|
||||||
set-window-option -g window-status-current-bg green
|
|
||||||
|
|
||||||
# clock
|
# clock
|
||||||
set-window-option -g clock-mode-colour cyan
|
set-window-option -g clock-mode-colour cyan
|
||||||
|
|||||||
Reference in new issue
Block a user