Created
May 22, 2019 10:09
-
-
Save linhmtran168/cbde596c94c2cba46be597c0099f2268 to your computer and use it in GitHub Desktop.
WSL dotfiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Command prefix (like screen) | |
unbind C-b | |
set -g prefix C-a | |
bind-key a send-prefix | |
# force a reload of the config file | |
unbind r | |
bind r source-file ~/.tmux.conf | |
# basic settings | |
set -g default-terminal "screen-256color" | |
set-window-option -g mode-keys vi # vi key | |
set-option -g status-keys vi | |
# start windows and pages at 1 | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
# screen like window toggling | |
bind Tab last-window | |
# quick pane cycling | |
unbind ^A | |
bind ^A select-pane -t :.+ | |
# delete pane and delete window | |
bind-key -r C-w kill-window | |
bind-key -r C-x kill-pane | |
# window title | |
set-option -g set-titles on | |
set-option -g set-titles-string '#S:#I.#P #W' # window number,program name,active (or not) | |
set-window-option -g automatic-rename on # auto name | |
# listent to alerts from all windows | |
set -g bell-action any | |
setw -g window-status-bell-bg white | |
setw -g window-status-bell-fg red | |
# messages | |
set-window-option -g mode-bg magenta | |
set-window-option -g mode-fg black | |
set-option -g message-bg magenta | |
set-option -g message-fg black | |
# status bar | |
set-option -g status-interval 5 | |
set-option -g visual-activity on | |
set-window-option -g monitor-activity on | |
# tmux plugin manager | |
set -g @tpm_plugins ' \ | |
tmux-plugins/tpm \ | |
tmux-plugins/tmux-sensible \ | |
tmux-plugins/tmux-copycat \ | |
tmux-plugins/tmux-yank \ | |
tmux-plugins/tmux-resurrect \ | |
tmux-plugins/tmux-continuum \ | |
tmux-plugins/tmux-open \ | |
tmux-plugins/tmux-logging \ | |
tmux-plugins/tmux-sessionist \ | |
tmux-plugins/tmux-pain-control \ | |
mattdavis90/base16-tmux \ | |
' | |
run '~/.tmux/plugins/tpm/tpm' | |
# theme | |
set -g @color-base16 'tomorrow-night' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set languag | |
set -xg LC_ALL en_US.UTF-8 | |
set -xg LANG en_US.UTF-8 | |
# Docker | |
set -xg DOCKER_HOST "tcp://localhost:2375" | |
# Set path | |
set --universal fish_user_paths $fish_user_paths $HOME/bin $HOME/.local/bin | |
# Base16 Shell | |
if status --is-interactive | |
set BASE16_SHELL "$HOME/.config/base16-shell/" | |
source "$BASE16_SHELL/profile_helper.fish" | |
end | |
# Linuxbrew | |
eval (/home/linuxbrew/.linuxbrew/bin/brew shellenv) | |
# Directory | |
alias dev='cd /c/Users/linhm/Dev' | |
# tmux | |
alias tma='tmux attach -t' | |
alias tmd='tmux new -s (basename (pwd))' | |
alias tmn='tmux new -s' | |
alias tml='tmux list-sessions' | |
alias tmk='tmux kill-session -t' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment