Compare commits

...

58 Commits

Author SHA1 Message Date
Gea-Suan Lin
a895613e82 fix: avoid from compinit twice. 2026-01-10 14:35:33 +08:00
Gea-Suan Lin
fac569a00e chore: rollback on hpnssh autoload for zsh. 2026-01-09 13:47:04 +08:00
Gea-Suan Lin
7f3bbd258b fix: load compinit for zsh. 2026-01-09 13:39:08 +08:00
Gea-Suan Lin
b16a15c462 feat: add auto completion for hpnssh. 2026-01-09 13:32:52 +08:00
Gea-Suan Lin
6e23c39455 fix: command -v will generate some strings to stdout. 2026-01-09 12:25:01 +08:00
Gea-Suan Lin
5152a44c2f feat: support for hpnssh. 2026-01-09 12:23:25 +08:00
Gea-Suan Lin
c14ab125e8 feat: remove unused aliases. 2026-01-05 15:57:25 +08:00
Gea-Suan Lin
62740fc09c fix: use ~ instead of hard-coded path. 2025-12-08 17:23:43 +08:00
250829f48c feat: add c0/c1 aliases. 2025-12-07 21:55:23 +08:00
Gea-Suan Lin
e4c53e50ba feat: use <Right> as accept key on llama.vim. 2025-11-13 13:58:03 +08:00
fc71f25353 feat: use line mode for sqlite by default. 2025-11-04 08:14:00 +08:00
55fd6112e1 feat: add gpt-4.1 into vim-ai. 2025-11-02 07:07:49 +08:00
Gea-Suan Lin
5f5ee008a2 fix: add missing temperature for vim-ai. 2025-11-02 07:04:19 +08:00
34f2ba05b0 feat: update default model to o4-mini, and add gpt-4.1-mini. 2025-11-02 04:07:41 +08:00
d8bcad9c4e fix: only install with python3 support. 2025-11-01 22:22:59 +08:00
4cb7ea4be5 feat: use vim-ai. 2025-11-01 22:19:53 +08:00
Gea-Suan Lin
ba35d8ad3f feat: disable Alt-{Left,Right} in tmux. 2025-10-31 15:31:22 +08:00
Gea-Suan Lin
412c9a640a feat: install .npmrc if it does not exist. 2025-10-02 12:16:58 +08:00
Gea-Suan Lin
5d7322bb44 refactor: sort. 2025-10-02 12:16:50 +08:00
Gea-Suan Lin
fdb51ee6fa feat: don't show npm fund. 2025-10-02 12:16:37 +08:00
Gea-Suan Lin
8aa021c323 chore: remove claude-code as we just use it in the shell. 2025-07-05 16:25:15 +08:00
Gea-Suan Lin
2959ff5a89 feat: support composer's binary. 2025-07-02 15:18:57 +08:00
Gea-Suan Lin
7aa25bd5f5 feat: add claude-code.nvim. 2025-06-18 09:32:21 +08:00
Gea-Suan Lin
ad3312af31 feat: add alias udac. 2025-05-10 02:57:20 +08:00
Gea-Suan Lin
a7b4cb4312 feat: add "cutl" alias support. 2025-05-06 00:18:59 +08:00
Gea-Suan Lin
8f32bb0387 fix: ttymouse was removed in neovim.
ref: https://neovim.io/doc/user/vim_diff.html#'ttymouse'
2025-04-23 01:58:13 +08:00
Gea-Suan Lin
73eb70e600 feat: use wide output for ps. 2025-04-23 01:56:36 +08:00
Gea-Suan Lin
1f5ae260bb feat: add ttymouse to disable. 2025-03-22 03:34:26 +08:00
Gea-Suan Lin
9fd0a3342f feat: remove autochdir. 2025-03-17 16:37:59 +08:00
Gea-Suan Lin
129717b4bd feat: use autochdir. 2025-03-17 16:01:33 +08:00
Gea-Suan Lin
a6f60b5ae9 feat: add Ctrl-Enter key binding for tmux. 2025-03-04 06:29:59 +08:00
Gea-Suan Lin
26a5aeca74 feat: add Ctrl-Enter to send specific string in wezterm. 2025-03-04 06:25:32 +08:00
Gea-Suan Lin
6e66bee022 feat: enable csi u key encoding. 2025-03-04 02:23:19 +08:00
Gea-Suan Lin
5bc6a329c2 feat: change llama_config's accept full key to Ctrl-Enter. 2025-03-03 07:06:21 +08:00
Gea-Suan Lin
a419c83059 feat: enlarge predict token. 2025-02-27 03:35:30 +08:00
Gea-Suan Lin
ea34eba5a2 feat: init llama_config in vim. 2025-02-27 03:34:39 +08:00
Gea-Suan Lin
a67e641e97 feat: use natural sort on tags. 2025-02-27 03:10:22 +08:00
Gea-Suan Lin
abcb39e1e4 feat: change git diff algorithm to histogram. 2025-02-26 02:22:31 +08:00
Gea-Suan Lin
a08d23f4d4 fix: syntax. 2025-02-11 01:40:51 +08:00
Gea-Suan Lin
13298de434 feat: add llama toggle. 2025-02-11 01:39:46 +08:00
Gea-Suan Lin
9f32a4a3a6 fix: "~" requires expand(). 2025-02-02 21:50:46 +08:00
Gea-Suan Lin
221dfa5cc8 feat: support preplug and post for vim. 2025-02-02 21:26:56 +08:00
Gea-Suan Lin
090e34ed00 feat: use nvim if it exists. 2025-01-27 02:49:41 +08:00
Gea-Suan Lin
84c6b724d8 fix: llama.vim requires vim >= 901. 2025-01-27 01:27:29 +08:00
Gea-Suan Lin
43db0c2363 refactor: sort. 2025-01-26 10:24:36 +08:00
Gea-Suan Lin
bfd1592573 fix: add llama.vim for pure vim. 2025-01-26 10:24:07 +08:00
Gea-Suan Lin
6ca2afb18c feat: enable llama.vim only if neovim is 0.8.0+. 2025-01-26 00:39:09 +08:00
Gea-Suan Lin
ddfa1c30d7 feat: change to use llama.vim. 2025-01-25 19:44:34 +08:00
Gea-Suan Lin
9ea4c0cf31 chore: update colorscheme. 2025-01-25 16:10:16 +08:00
Gea-Suan Lin
4f48e02654 chore: update colorscheme. 2025-01-25 13:14:45 +08:00
Gea-Suan Lin
895f0ee8c6 feat: wezterm's paste. 2025-01-07 23:46:57 +08:00
Gea-Suan Lin
8dc0427829 feat: change to darkblue color. 2024-12-25 22:07:24 +08:00
Gea-Suan Lin
aff63e4512 feat: use murphy color. 2024-12-25 22:04:08 +08:00
Gea-Suan Lin
2d58ac6583 feat: include zsh-autosuggestions. 2024-12-21 02:27:39 +08:00
Gea-Suan Lin
7d600106e1 fix: remove strange ]]. 2024-12-21 02:27:15 +08:00
Gea-Suan Lin
d467346882 feat: use » for tab in vim. 2024-11-28 03:00:26 +08:00
Gea-Suan Lin
f1d06cc0c7 feat: change to use molokai. 2024-11-01 03:39:14 +08:00
Gea-Suan Lin
ef74452d14 feat: remove unused colorscheme. 2024-11-01 03:38:59 +08:00
12 changed files with 121 additions and 29 deletions

17
.bashrc
View File

@@ -8,9 +8,9 @@ alias ccat="pygmentize -g"
alias cd..="cd .." alias cd..="cd .."
alias cd...="cd ../.." alias cd...="cd ../.."
alias cls="clear" alias cls="clear"
alias cutl="cut -c -\$(tput cols)"
alias d="dir" alias d="dir"
alias dir="ls -l" alias dir="ls -l"
alias f="finger"
alias g="grep --color=auto" alias g="grep --color=auto"
alias gph="git push -v --follow-tags" alias gph="git push -v --follow-tags"
alias gpl="git pull -v --all --autostash --rebase --recurse-submodules" alias gpl="git pull -v --all --autostash --rebase --recurse-submodules"
@@ -22,12 +22,19 @@ alias md="mkdir"
alias more="most" alias more="most"
alias myip="curl -s https://httpbin.org/ip | jq .origin" alias myip="curl -s https://httpbin.org/ip | jq .origin"
alias o="xdg-open" alias o="xdg-open"
alias psa="ps awx" alias psa="ps auwwx"
alias psm="ps -O rss,vsz -U $USER" alias psm="ps -O rss,vsz -U $USER -ww"
alias psr="psu root" alias psr="psu root"
alias psu="ps -U" alias psu="ps -ww -U"
alias s="screen" alias s="screen"
alias ssh="ssh -C -e none" alias udac="sudo apt update; sudo apt dist-upgrade -y; sudo apt autoremove -y; sudo apt clean"
#
if command -v hpnssh > /dev/null; then
alias ssh="hpnssh -C -e none"
complete -F _ssh hpnssh
else
alias ssh="ssh -C -e none"
fi
# #
if [[ -x /opt/local/bin/gtelnet ]]; then if [[ -x /opt/local/bin/gtelnet ]]; then
alias "t=gtelnet" alias "t=gtelnet"

View File

@@ -1,4 +1,6 @@
# #
alias c0=claude
alias c1="CLAUDE_CONFIG_DIR=~/.claude-c1 claude"
alias update="(cd ~/git; make all)" alias update="(cd ~/git; make all)"
# #
[[ -s /usr/share/doc/fzf/examples/completion.bash ]] && source /usr/share/doc/fzf/examples/completion.bash [[ -s /usr/share/doc/fzf/examples/completion.bash ]] && source /usr/share/doc/fzf/examples/completion.bash
@@ -7,3 +9,8 @@ alias update="(cd ~/git; make all)"
if command -v mise > /dev/null; then if command -v mise > /dev/null; then
eval "$(mise activate bash)" eval "$(mise activate bash)"
fi fi
#
# Composer
if [[ -e "${HOME}/.config/composer/vendor/bin" ]]; then
export PATH="${HOME}/.config/composer/vendor/bin:${PATH}"
fi

View File

@@ -18,7 +18,7 @@
[core] [core]
preloadindex = yes preloadindex = yes
[diff] [diff]
algorithm = minimal algorithm = histogram
[diff "sqlite3"] [diff "sqlite3"]
binary = true binary = true
textconv = "echo '.dbconfig trusted_schema no\n.dump' | sqlite3" textconv = "echo '.dbconfig trusted_schema no\n.dump' | sqlite3"
@@ -36,6 +36,8 @@
enabled = true enabled = true
[submodule] [submodule]
recursive = true recursive = true
[tag]
sort = version:refname
[user] [user]
useConfigOnly = true useConfigOnly = true
# #

1
.npmrc Normal file
View File

@@ -0,0 +1 @@
fund=false

View File

@@ -1,2 +1,2 @@
.header on .header on
.mode column .mode line

View File

@@ -3,6 +3,11 @@ bind-key C-a send-prefix
set -g prefix C-a set -g prefix C-a
unbind C-b unbind C-b
# #
unbind-key -T root M-Left
unbind-key -T root M-Right
#
bind-key -n C-Enter send-keys "\e[13;5u"
#
set-option -g status-bg colour27 set-option -g status-bg colour27
set-option -g status-fg white set-option -g status-fg white
set-option -g window-status-current-style bg=colour28 set-option -g window-status-current-style bg=colour28

9
.vim/vim-ai/roles.ini Normal file
View File

@@ -0,0 +1,9 @@
[default]
options.model = o4-mini
options.temperature = 1
[gpt-4.1]
options.model = gpt-4.1
[gpt-4.1-mini]
options.model = gpt-4.1-mini

View File

@@ -13,7 +13,7 @@ set incsearch
set laststatus=2 set laststatus=2
set lazyredraw set lazyredraw
set list set list
set listchars=tab:\ ,trail set listchars=tab:»\ ,trail
set mouse= set mouse=
set nobomb set nobomb
set nocompatible set nocompatible
@@ -25,6 +25,9 @@ set shiftwidth=4
set showmatch set showmatch
set smartcase set smartcase
set t_Co=256 set t_Co=256
if !has('nvim')
set ttymouse=
endif
set visualbell set visualbell
set wrap set wrap
set wildmenu set wildmenu
@@ -36,13 +39,14 @@ let g:DisableAutoPHPFolding = 1
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*'] let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
let g:indent_guides_auto_colors = 0 let g:indent_guides_auto_colors = 0
let g:indent_guides_enable_on_vim_startup = 1 let g:indent_guides_enable_on_vim_startup = 1
let g:llama_config = {'keymap_accept_full':'<Right>','n_predict':256}
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=8 autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=8
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd ctermbg=236 autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd ctermbg=236
" "
" mapping " mapping
cnoremap <expr> <Down> pumvisible() ? "\<C-n>" : "\<Down>" cnoremap <expr> <Down> pumvisible() ? "\<C-n>" : "\<Down>"
cnoremap <expr> <Up> pumvisible() ? "\<C-p>" : "\<Up>" cnoremap <expr> <Up> pumvisible() ? "\<C-p>" : "\<Up>"
map <C-c> :call plug#load('copilot.vim')<CR>:Copilot enable<CR> map <C-c> :LlamaToggle<CR>
nmap <Esc>[Z <C-w>W nmap <Esc>[Z <C-w>W
nmap <F8> :TagbarToggle<CR> nmap <F8> :TagbarToggle<CR>
nmap <Tab> <C-w>w nmap <Tab> <C-w>w
@@ -56,6 +60,12 @@ filetype off
let g:lightline = {'component':{'lineinfo':'%3l:%-2v'}} let g:lightline = {'component':{'lineinfo':'%3l:%-2v'}}
let g:polyglot_disabled = ["autoindent", "sensible"] let g:polyglot_disabled = ["autoindent", "sensible"]
let g:snipMate = {'snippet_version': 1} let g:snipMate = {'snippet_version': 1}
let g:vim_ai_roles_config_file = '~/.vim/vim-ai/roles.ini'
"
" Local
if filereadable(expand("~/.vim/vimrc-preplug.local"))
source ~/.vim/vimrc-preplug.local
endif
" "
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')
Plug 'DataWraith/auto_mkdir' Plug 'DataWraith/auto_mkdir'
@@ -64,29 +74,33 @@ Plug 'bonsaiben/bootstrap-snippets'
Plug 'ctrlpvim/ctrlp.vim' Plug 'ctrlpvim/ctrlp.vim'
Plug 'editorconfig/editorconfig-vim' Plug 'editorconfig/editorconfig-vim'
Plug 'garbas/vim-snipmate' Plug 'garbas/vim-snipmate'
Plug 'github/copilot.vim', { 'on': [] }
Plug 'godlygeek/csapprox' Plug 'godlygeek/csapprox'
Plug 'honza/vim-snippets' Plug 'honza/vim-snippets'
Plug 'itchyny/lightline.vim' Plug 'itchyny/lightline.vim'
Plug 'luochen1990/rainbow' Plug 'luochen1990/rainbow'
Plug 'joshdick/onedark.vim'
Plug 'majutsushi/tagbar' Plug 'majutsushi/tagbar'
Plug 'motus/pig.vim' Plug 'motus/pig.vim'
Plug 'phha/zenburn.nvim'
Plug 'preservim/vim-indent-guides' Plug 'preservim/vim-indent-guides'
Plug 'scrooloose/nerdtree' Plug 'scrooloose/nerdtree'
Plug 'sheerun/vim-polyglot' Plug 'sheerun/vim-polyglot'
Plug 'terryma/vim-expand-region' Plug 'terryma/vim-expand-region'
Plug 'tomasr/molokai'
Plug 'tomtom/tlib_vim' Plug 'tomtom/tlib_vim'
Plug 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround' Plug 'tpope/vim-surround'
Plug 'wuelnerdotexe/vim-astro' Plug 'wuelnerdotexe/vim-astro'
if v:version >= 901 || has('nvim-0.8.0')
Plug 'ggml-org/llama.vim'
Plug 'nvim-lua/plenary.nvim'
endif
if has('python3')
Plug 'madox2/vim-ai'
endif
call plug#end() call plug#end()
" "
" color schema " color schema
set background=dark set background=dark
colo zenburn colo slate
highlight Search cterm=none ctermbg=blue
" "
" syntax " syntax
syntax on syntax on
@@ -110,11 +124,10 @@ au BufNewFile,BufRead Makefile set noexpandtab
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
au FileType css,dart,html,javascript,javascriptreact,json,ruby,typescript,typescriptreact,yaml set shiftwidth=2 au FileType css,dart,html,javascript,javascriptreact,json,ruby,typescript,typescriptreact,yaml set shiftwidth=2
au FileType go set noexpandtab shiftwidth=4 tabstop=4 au FileType go set noexpandtab shiftwidth=4 tabstop=4
autocmd BufEnter * silent! lcd %:p:h
autocmd BufReadPost COMMIT_EDITMSG exe "normal! gg" autocmd BufReadPost COMMIT_EDITMSG exe "normal! gg"
map <C-n> :NERDTreeToggle<CR> map <C-n> :NERDTreeToggle<CR>
" "
" Local " Local
if filereadable("~/.vim/vimrc.local") if filereadable(expand("~/.vim/vimrc-post.local"))
source ~/.vim/vimrc.local source ~/.vim/vimrc-post.local
endif endif

View File

@@ -6,12 +6,25 @@ local config = wezterm.config_builder()
config.check_for_updates = false config.check_for_updates = false
config.color_scheme = 'Tango (terminal.sexy)' config.color_scheme = 'Tango (terminal.sexy)'
config.enable_csi_u_key_encoding = true
config.font = wezterm.font_with_fallback({'Cousine', 'Noto Color Emoji', 'Noto Sans CJK JP'}) config.font = wezterm.font_with_fallback({'Cousine', 'Noto Color Emoji', 'Noto Sans CJK JP'})
config.font_size = 18.0 config.font_size = 18.0
config.hide_mouse_cursor_when_typing = false config.hide_mouse_cursor_when_typing = false
config.initial_cols = 132 config.initial_cols = 132
config.initial_rows = 43 config.initial_rows = 43
config.line_height = 1.0 config.line_height = 1.0
config.keys = {
{
key = 'Enter',
mods = 'CTRL',
action = act.SendString '\x1b[13;5u',
},
{
key = 'Insert',
mods = 'SHIFT',
action = act.PasteFrom 'Clipboard',
},
}
config.mouse_bindings = { config.mouse_bindings = {
{ {
event = {Up = {streak = 1, button = 'Left'}}, event = {Up = {streak = 1, button = 'Left'}},
@@ -27,7 +40,12 @@ config.mouse_bindings = {
event = {Up = {streak = 1, button = 'Middle'}}, event = {Up = {streak = 1, button = 'Middle'}},
mods = 'NONE', mods = 'NONE',
action = act.OpenLinkAtMouseCursor, action = act.OpenLinkAtMouseCursor,
} },
{
event = {Up = {streak = 1, button = 'Right'}},
mods = 'NONE',
action = act.PasteFrom 'Clipboard',
},
} }
config.selection_word_boundary = " \t\n{}[]()<>\"'`" config.selection_word_boundary = " \t\n{}[]()<>\"'`"
config.window_padding = { config.window_padding = {

23
.zshrc
View File

@@ -2,15 +2,18 @@
umask 022 umask 022
cd "$HOME" cd "$HOME"
# #
autoload -Uz compinit
compinit
#
alias "SYNC=sync;sync;sync" alias "SYNC=sync;sync;sync"
alias "c=clear" alias "c=clear"
alias "ccat=pygmentize -g" alias "ccat=pygmentize -g"
alias "cd..=cd .." alias "cd..=cd .."
alias "cd...=cd ../.." alias "cd...=cd ../.."
alias "cls=clear" alias "cls=clear"
alias "cutl=cut -c -$(tput cols)"
alias "d=ls -l" alias "d=ls -l"
alias "dir=ls -l" alias "dir=ls -l"
alias "f=finger"
alias "g=grep --color=auto" alias "g=grep --color=auto"
alias "gph=git push -v --follow-tags" alias "gph=git push -v --follow-tags"
alias "gpl=git pull -v --all --autostash --rebase --recurse-submodules" alias "gpl=git pull -v --all --autostash --rebase --recurse-submodules"
@@ -20,12 +23,19 @@ alias "lo=logout"
alias "m=more" alias "m=more"
alias "more=most" alias "more=most"
alias "myip=curl -s https://httpbin.org/ip | jq .origin" alias "myip=curl -s https://httpbin.org/ip | jq .origin"
alias "psa=ps aux" alias "psa=ps auwwx"
alias "psm=ps -O rss,vsz -U $USER" alias "psm=ps -O rss,vsz -U $USER -ww"
alias "psr=psu root" alias "psr=psu root"
alias "psu=ps -U" alias "psu=ps -ww -U"
alias "s=screen" alias "s=screen"
alias "ssh=ssh -C -e none" alias "udac=sudo apt update; sudo apt dist-upgrade -y; sudo apt autoremove -y; sudo apt clean"
#
if command -v hpnssh > /dev/null; then
alias "ssh=hpnssh -C -e none"
compdef hpnssh=ssh
else
alias "ssh=ssh -C -e none"
fi
# #
if [[ -x /opt/local/bin/gtelnet ]]; then if [[ -x /opt/local/bin/gtelnet ]]; then
alias "t=gtelnet" alias "t=gtelnet"
@@ -170,6 +180,7 @@ setopt prompt_subst
# #
zstyle ':completion:*' menu select zstyle ':completion:*' menu select
# #
[[ -s "$HOME/git/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]] && . "$HOME/git/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]] [[ -s "$HOME/git/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]] && . "$HOME/git/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
[[ -s "$HOME/git/zsh-autosuggestions/zsh-autosuggestions.zsh" ]] && . "$HOME/git/zsh-autosuggestions/zsh-autosuggestions.zsh"
# #
[[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local" [[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local"

View File

@@ -1,11 +1,20 @@
# #
autoload -Uz compinit if ! whence compinit >/dev/null; then
compinit autoload -Uz compinit && compinit
compinit
fi
[[ -s /usr/share/doc/fzf/examples/completion.zsh ]] && source /usr/share/doc/fzf/examples/completion.zsh [[ -s /usr/share/doc/fzf/examples/completion.zsh ]] && source /usr/share/doc/fzf/examples/completion.zsh
[[ -s /usr/share/doc/fzf/examples/key-bindings.zsh ]] && source /usr/share/doc/fzf/examples/key-bindings.zsh [[ -s /usr/share/doc/fzf/examples/key-bindings.zsh ]] && source /usr/share/doc/fzf/examples/key-bindings.zsh
# #
alias "c0=claude"
alias "c1=CLAUDE_CONFIG_DIR=~/.claude-c1 claude"
alias "update=(cd ~/git; make all)" alias "update=(cd ~/git; make all)"
# #
if command -v mise > /dev/null; then if command -v mise > /dev/null; then
eval "$(mise activate zsh)" eval "$(mise activate zsh)"
fi fi
#
# Composer
if [[ -e "${HOME}/.config/composer/vendor/bin" ]]; then
export PATH="${HOME}/.config/composer/vendor/bin:${PATH}"
fi

View File

@@ -36,17 +36,22 @@ if [ ! -e ~/.gitconfig.local ]; then
cp ${BASEDIR}/.gitconfig.local ~/ cp ${BASEDIR}/.gitconfig.local ~/
fi fi
#
if [ ! -e ~/.npmrc ]; then
cp ${BASEDIR}/.npmrc ~/
fi
# #
cp ${BASEDIR}/.gdbinit ~/ cp ${BASEDIR}/.gdbinit ~/
# #
cp ${BASEDIR}/.wgetrc ~/ cp ${BASEDIR}/.psqlrc ~/
# #
cp ${BASEDIR}/.sqliterc ~/ cp ${BASEDIR}/.sqliterc ~/
# #
cp ${BASEDIR}/.psqlrc ~/ cp ${BASEDIR}/.wgetrc ~/
# nvim # nvim
mkdir -p ~/.config || true mkdir -p ~/.config || true
@@ -56,7 +61,12 @@ ln -fs ../.vim ~/.config/nvim
mkdir -p ~/.vim/ || true mkdir -p ~/.vim/ || true
rsync -a ${BASEDIR}/.vim/ ~/.vim/ rsync -a ${BASEDIR}/.vim/ ~/.vim/
chmod 700 ~/.vim/ chmod 700 ~/.vim/
vim +PlugUpdate +PlugClean\! +q +q
if command -v nvim > /dev/null; then
nvim +PlugUpdate +PlugClean\! +q +q
else
vim +PlugUpdate +PlugClean\! +q +q
fi
# #
diff -ruN --color .bashrc.local ~/.bashrc.local diff -ruN --color .bashrc.local ~/.bashrc.local
diff -ruN --color .zshrc.local ~/.zshrc.local diff -ruN --color .zshrc.local ~/.zshrc.local