Compare commits

...

20 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
10 changed files with 51 additions and 10 deletions

View File

@@ -11,7 +11,6 @@ alias cls="clear"
alias cutl="cut -c -\$(tput cols)"
alias d="dir"
alias dir="ls -l"
alias f="finger"
alias g="grep --color=auto"
alias gph="git push -v --follow-tags"
alias gpl="git pull -v --all --autostash --rebase --recurse-submodules"
@@ -28,9 +27,15 @@ alias psm="ps -O rss,vsz -U $USER -ww"
alias psr="psu root"
alias psu="ps -ww -U"
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
alias "t=gtelnet"
else

View File

@@ -1,4 +1,6 @@
#
alias c0=claude
alias c1="CLAUDE_CONFIG_DIR=~/.claude-c1 claude"
alias update="(cd ~/git; make all)"
#
[[ -s /usr/share/doc/fzf/examples/completion.bash ]] && source /usr/share/doc/fzf/examples/completion.bash

1
.npmrc Normal file
View File

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

View File

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

View File

@@ -3,6 +3,9 @@ bind-key C-a send-prefix
set -g prefix C-a
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

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

@@ -39,7 +39,7 @@ let g:DisableAutoPHPFolding = 1
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
let g:indent_guides_auto_colors = 0
let g:indent_guides_enable_on_vim_startup = 1
let g:llama_config = {'keymap_accept_full':'<C-Enter>','n_predict':256}
let g:llama_config = {'keymap_accept_full':'<Right>','n_predict':256}
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=8
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd ctermbg=236
"
@@ -60,6 +60,7 @@ filetype off
let g:lightline = {'component':{'lineinfo':'%3l:%-2v'}}
let g:polyglot_disabled = ["autoindent", "sensible"]
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"))
@@ -92,6 +93,9 @@ 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()
"
" color schema

12
.zshrc
View File

@@ -2,6 +2,9 @@
umask 022
cd "$HOME"
#
autoload -Uz compinit
compinit
#
alias "SYNC=sync;sync;sync"
alias "c=clear"
alias "ccat=pygmentize -g"
@@ -11,7 +14,6 @@ alias "cls=clear"
alias "cutl=cut -c -$(tput cols)"
alias "d=ls -l"
alias "dir=ls -l"
alias "f=finger"
alias "g=grep --color=auto"
alias "gph=git push -v --follow-tags"
alias "gpl=git pull -v --all --autostash --rebase --recurse-submodules"
@@ -26,9 +28,15 @@ alias "psm=ps -O rss,vsz -U $USER -ww"
alias "psr=psu root"
alias "psu=ps -ww -U"
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
alias "t=gtelnet"
else

View File

@@ -1,9 +1,13 @@
#
autoload -Uz compinit
compinit
if ! whence compinit >/dev/null; then
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/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)"
#
if command -v mise > /dev/null; then

View File

@@ -36,17 +36,22 @@ if [ ! -e ~/.gitconfig.local ]; then
cp ${BASEDIR}/.gitconfig.local ~/
fi
#
if [ ! -e ~/.npmrc ]; then
cp ${BASEDIR}/.npmrc ~/
fi
#
cp ${BASEDIR}/.gdbinit ~/
#
cp ${BASEDIR}/.wgetrc ~/
cp ${BASEDIR}/.psqlrc ~/
#
cp ${BASEDIR}/.sqliterc ~/
#
cp ${BASEDIR}/.psqlrc ~/
cp ${BASEDIR}/.wgetrc ~/
# nvim
mkdir -p ~/.config || true