Last active
March 9, 2023 00:00
-
-
Save tin-z/478fdeb89b13a8ef80a2161b0517bacf to your computer and use it in GitHub Desktop.
remote settings
This file contains hidden or 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
# place it on `~/.tmux.conf` then run `tmux source-file ~/.tmux.conf` | |
# Increase History Size | |
set-option -g history-limit 50000 | |
set -g default-command "reattach-to-user-namespace -l zsh" | |
## Join Windows (Moving tmux pane to window) | |
## ref, https://unix.stackexchange.com/questions/14300/moving-tmux-pane-to-window | |
#bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'" | |
#bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'" | |
## tmux config options for mouse scroll | |
## ref, https://gist.github.com/Yvtq8K3n/c23c9c968e5dd9bebc0efd3248fe5da6 | |
#set -g mouse on | |
#bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'" | |
#bind -n WheelDownPane select-pane -t= \; send-keys -M | |
#bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M | |
#bind -T copy-mode-vi C-WheelUpPane send-keys -X halfpage-up | |
#bind -T copy-mode-vi C-WheelDownPane send-keys -X halfpage-down | |
#bind -T copy-mode-emacs C-WheelUpPane send-keys -X halfpage-up | |
#bind -T copy-mode-emacs C-WheelDownPane send-keys -X halfpage-down | |
## To copy, left click and drag to highlight text in yellow, | |
## once you release left click yellow text will disappear and will automatically be available in clibboard | |
## Use vim keybindings in copy mode | |
## ref, https://gist.github.com/Yvtq8K3n/c23c9c968e5dd9bebc0efd3248fe5da6 | |
#setw -g mode-keys vi | |
## Update default binding of `Enter` to also use copy-pipe | |
#unbind -T copy-mode-vi Enter | |
#bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -selection c" | |
#bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard" |
This file contains hidden or 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
syntax on | |
set smartindent | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set number | |
set mouse=a | |
if &t_Co > 1 | |
syntax enable | |
endif | |
set background=light | |
" ref https://gist.github.com/Integralist/0d2f7f156aea02fce362523dd4fc185c | |
" Use the system clipboard | |
" set clipboard+=unnamed | |
" Highlight search matches | |
set hlsearch | |
" Ignore case in search | |
set ignorecase | |
" set smartcase | |
augroup filetypedetect | |
au! BufRead,BufNewFile *.c.bleed setfiletype c | |
augroup END | |
augroup filetypedetect | |
au! BufRead,BufNewFile *.vy setfiletype python | |
augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment