Compare commits
20 Commits
8aa021c323
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a895613e82 | ||
|
|
fac569a00e | ||
|
|
7f3bbd258b | ||
|
|
b16a15c462 | ||
|
|
6e23c39455 | ||
|
|
5152a44c2f | ||
|
|
c14ab125e8 | ||
|
|
62740fc09c | ||
| 250829f48c | |||
|
|
e4c53e50ba | ||
| fc71f25353 | |||
| 55fd6112e1 | |||
|
|
5f5ee008a2 | ||
| 34f2ba05b0 | |||
| d8bcad9c4e | |||
| 4cb7ea4be5 | |||
|
|
ba35d8ad3f | ||
|
|
412c9a640a | ||
|
|
5d7322bb44 | ||
|
|
fdb51ee6fa |
9
.bashrc
9
.bashrc
@@ -11,7 +11,6 @@ alias cls="clear"
|
|||||||
alias cutl="cut -c -\$(tput cols)"
|
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"
|
||||||
@@ -28,9 +27,15 @@ alias psm="ps -O rss,vsz -U $USER -ww"
|
|||||||
alias psr="psu root"
|
alias psr="psu root"
|
||||||
alias psu="ps -ww -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"
|
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"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -3,6 +3,9 @@ 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"
|
bind-key -n C-Enter send-keys "\e[13;5u"
|
||||||
#
|
#
|
||||||
set-option -g status-bg colour27
|
set-option -g status-bg colour27
|
||||||
|
|||||||
9
.vim/vim-ai/roles.ini
Normal file
9
.vim/vim-ai/roles.ini
Normal 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
|
||||||
@@ -39,7 +39,7 @@ 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':'<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 IndentGuidesEven ctermbg=8
|
||||||
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd ctermbg=236
|
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd ctermbg=236
|
||||||
"
|
"
|
||||||
@@ -60,6 +60,7 @@ 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
|
" Local
|
||||||
if filereadable(expand("~/.vim/vimrc-preplug.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 'ggml-org/llama.vim'
|
||||||
Plug 'nvim-lua/plenary.nvim'
|
Plug 'nvim-lua/plenary.nvim'
|
||||||
endif
|
endif
|
||||||
|
if has('python3')
|
||||||
|
Plug 'madox2/vim-ai'
|
||||||
|
endif
|
||||||
call plug#end()
|
call plug#end()
|
||||||
"
|
"
|
||||||
" color schema
|
" color schema
|
||||||
|
|||||||
12
.zshrc
12
.zshrc
@@ -2,6 +2,9 @@
|
|||||||
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"
|
||||||
@@ -11,7 +14,6 @@ alias "cls=clear"
|
|||||||
alias "cutl=cut -c -$(tput cols)"
|
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"
|
||||||
@@ -26,9 +28,15 @@ alias "psm=ps -O rss,vsz -U $USER -ww"
|
|||||||
alias "psr=psu root"
|
alias "psr=psu root"
|
||||||
alias "psu=ps -ww -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"
|
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"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
#
|
#
|
||||||
autoload -Uz compinit
|
if ! whence compinit >/dev/null; then
|
||||||
|
autoload -Uz compinit && 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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user