Skip to content

Commit

Permalink
Update after a long time
Browse files Browse the repository at this point in the history
  • Loading branch information
ujinyng committed Dec 13, 2020
1 parent 7c416a0 commit d0a1b90
Show file tree
Hide file tree
Showing 19 changed files with 2,544 additions and 51 deletions.
1 change: 1 addition & 0 deletions _gdb/.gdbinit
Original file line number Diff line number Diff line change
Expand Up @@ -2260,3 +2260,4 @@ python Dashboard.start()
# Local Variables:
# mode: python
# End:
set startup-with-shell off
1 change: 1 addition & 0 deletions _git/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
unstage = "!# Select staged files and Unstage them.\n\
git diff-unselect | xargs git reset HEAD"
un = unstage
rmcache = "!git rm -r --cached ."
sync = "!Sync with a [branch] in the remote repo \n\
f() { git fetch $1 && git reset --hard $1/$(git b0); }; f"
sync2 = "!# Sync with a branch with the same name in the remote repo.\n\
Expand Down
2 changes: 1 addition & 1 deletion _nodejs/.config/configstore/update-notifier-npm.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"optOut": false,
"lastUpdateCheck": 1592739745111
"lastUpdateCheck": 1607418100765
}
2 changes: 1 addition & 1 deletion _nodejs/.config/gatsby/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"telemetry": {
"enabled": true,
"machineId": "3a638ade-137d-48d2-a366-448bc5bb4e1b"
"machineId": "e19b398f-aad3-42a0-82b4-eeaa5d71b226"
}
}
2 changes: 1 addition & 1 deletion _py/.pyenv/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
anaconda3-5.3.1
system
35 changes: 20 additions & 15 deletions _tmux/.tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ Jade=colour37
Black=colour16

# tmux-logging shortcut
# save complete pane history: M-P
# save pane history: M-P
# clear pane history: M-c
# screen_capture: M-p
# toggle_logging: P
#

#+ prefix ! : break-pane
bind-key @ command-prompt -p "restruct pane with:" "join-pane -s ':%%'"
bind-key C-@ command-prompt -p "restruct pane with:" "join-pane -h -s :'%%'"
# clear history and reset screen : prefix+ M-r
bind M-r send-keys -R \; clear-history
# change kill-window shortcut : prefix+ M-k
Expand All @@ -60,7 +62,7 @@ bind-key -n 'C-l' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'
tmux_version='$(tmux -V | sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")'
if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
"bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\' 'select-pane -l'"
if-shell -b '[ "$(echo "$tmux_version = 3.0" | bc)" = 1 ]' \
if-shell -b '[ "$(echo "$tmux_version > 3.0" | bc)" = 1 ]' \
"bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\\\' 'select-pane -l'"
bind-key -T copy-mode-vi 'C-h' select-pane -L
bind-key -T copy-mode-vi 'C-j' select-pane -D
Expand Down Expand Up @@ -100,21 +102,21 @@ bind-key -T copy-mode-vi 'c-v' send-keys -X rectangle-toggle
# Update default binding of `y` to use copy-pipe
unbind -T copy-mode-vi 'y'
bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel "pbcopy"
# Mouse scroll to copy mode
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
# # Mouse scroll to copy mode
# bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
# use 'p' to paste
bind-key 'p' run "pbpaste | tmux load-buffer - && tmux paste-buffer"


# Scroll halfpage : Ctrl + mouse wheel
#-----------------------------------------------------------------------
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 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
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

# tmux-continuum
# ln -sf <file> last
Expand Down Expand Up @@ -167,10 +169,11 @@ set -g status-left "\
#[fg=$DarkGray, bg=$DarkGray]#{?client_prefix,#[fg=$Plum],}"
##[fg=$LightYellow] #(~/dotfiles/tmux_scripts/battery.sh) "

# continuum save interval and username
set -g status-right "\
#[fg=$LightSkyblue]✔︎ #{continuum_status} \
#[fg=$LightYellow]✦ #(whoami)"
#[fg=$Gray, bg=$DarkGray]  %b %d %y\
#[fg=$Gray, bg=$DarkGray]  %b %d %;y\
#[fg=$PalePurple]  %H:%M \

# current window
Expand Down Expand Up @@ -226,6 +229,7 @@ set -g base-index 1
set -g pane-base-index 1

# set -g status-keys emacs
set -g status-keys vi

set -g renumber-windows on

Expand All @@ -242,10 +246,11 @@ set -g escape-time 0

set -g assume-paste-time 1

# set -g default-terminal "xterm"
# set -g default-terminal "screen-256color"
# set -s terminal-overrides ",xterm-256color-italic:Tc"
# set -sa terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q' # this is for the cursor shape
set -g default-terminal "xterm-256color"
setw -g xterm-keys on
set -ga terminal-overrides ",*256col*:Tc" # this is for 256 color
setw -g xterm-keys on;

# focus events enabled for terminals that support them
set -g focus-events on
Expand Down
2 changes: 2 additions & 0 deletions _vim/.config/coc/commands
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
python.runLinting
python.setInterpreter
prettier.formatFile
2 changes: 1 addition & 1 deletion _vim/.config/coc/extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"coc-lists": ">=1.3.8",
"coc-markdownlint": ">=1.4.0",
"coc-marketplace": ">=1.7.0",
"coc-prettier": ">=1.1.12",
"coc-prettier": ">=1.1.14",
"coc-python": ">=1.2.12",
"coc-sh": ">=0.4.0",
"coc-snippets": ">=2.1.26",
Expand Down
5 changes: 5 additions & 0 deletions _vim/.config/coc/history.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
"commands": {
"%2FUsers%2Fujinyoung%2Fblog%2FUuritech": [
"pret"
],
"%2FUsers%2Fujinyoung%2Fselenium": [
"pythonset",
"python",
"ind`:qk:qf"
]
}
}
Loading

0 comments on commit d0a1b90

Please sign in to comment.