Compare commits

...

10 Commits

Author SHA1 Message Date
Gea-Suan Lin
31ef32be87 Revert "Add --all to "gpl" command."
This reverts commit 4e6f731e05.
2024-02-18 23:18:07 +08:00
Gea-Suan Lin
e86e6bbb35 Set git's column.ui = auto. 2024-02-14 08:43:26 +08:00
Gea-Suan Lin
4e6f731e05 Add --all to "gpl" command. 2024-02-03 17:55:01 +08:00
Gea-Suan Lin
e3d4b4652a Set noexpandtab for go files. 2024-01-13 18:53:35 +08:00
Gea-Suan Lin
0cec1864a8 Use golang gofmt's style. 2024-01-13 16:11:32 +08:00
Gea-Suan Lin
66e04ea77f Add ~/go/bin as official way. 2024-01-13 15:48:44 +08:00
Gea-Suan Lin
8a80984509 Remove gvm, as there is an official way [1].
[1] https://go.dev/doc/manage-install#installing-multiple
2024-01-13 15:43:05 +08:00
Gea-Suan Lin
92d4b53421 Add color output for diff. 2024-01-13 15:22:21 +08:00
Gea-Suan Lin
3eb1dae752 Fix typo. 2024-01-13 15:21:18 +08:00
Gea-Suan Lin
85043de817 Show diff for local scripts after install. 2024-01-13 15:20:35 +08:00
5 changed files with 8 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ 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
[[ -s /usr/share/doc/fzf/examples/key-bindings.bash ]] && source /usr/share/doc/fzf/examples/key-bindings.bash [[ -s /usr/share/doc/fzf/examples/key-bindings.bash ]] && source /usr/share/doc/fzf/examples/key-bindings.bash
# #
[[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/gvm" [[ -e "$HOME/go/bin" ]] && export PATH="${HOME}/go/bin:${PATH}"
[[ -s "$HOME/perl5/perlbrew/etc/bashrc" ]] && source "$HOME/perl5/perlbrew/etc/bashrc" [[ -s "$HOME/perl5/perlbrew/etc/bashrc" ]] && source "$HOME/perl5/perlbrew/etc/bashrc"
[[ -s "$HOME/.phpbrew/bashrc" ]] && source "$HOME/.phpbrew/bashrc" [[ -s "$HOME/.phpbrew/bashrc" ]] && source "$HOME/.phpbrew/bashrc"
[[ -s "$HOME/.cargo/env" ]] && source "$HOME/.cargo/env" [[ -s "$HOME/.cargo/env" ]] && source "$HOME/.cargo/env"

View File

@@ -12,6 +12,8 @@
ignoreRevsFile = .git-blame-ignore-revs ignoreRevsFile = .git-blame-ignore-revs
[color] [color]
ui = auto ui = auto
[column]
ui = auto
[core] [core]
preloadindex = yes preloadindex = yes
[diff] [diff]

View File

@@ -104,6 +104,7 @@ au BufNewFile,BufRead GNUmakefile set noexpandtab
au BufNewFile,BufRead Makefile set noexpandtab 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 dart,html,javascript,javascriptreact,json,ruby,typescript,yaml set shiftwidth=2 au FileType dart,html,javascript,javascriptreact,json,ruby,typescript,yaml set shiftwidth=2
au FileType go set noexpandtab shiftwidth=4 tabstop=4
autocmd BufEnter * silent! lcd %:p:h 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>

View File

@@ -6,7 +6,7 @@ compinit
# #
alias "update=(cd ~/git; make all)" alias "update=(cd ~/git; make all)"
# #
[[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/gvm" [[ -e "$HOME/go/bin" ]] && export PATH="${HOME}/go/bin:${PATH}"
[[ -s "$HOME/perl5/perlbrew/etc/bashrc" ]] && source "$HOME/perl5/perlbrew/etc/bashrc" [[ -s "$HOME/perl5/perlbrew/etc/bashrc" ]] && source "$HOME/perl5/perlbrew/etc/bashrc"
[[ -s "$HOME/.phpbrew/bashrc" ]] && source "$HOME/.phpbrew/bashrc" [[ -s "$HOME/.phpbrew/bashrc" ]] && source "$HOME/.phpbrew/bashrc"
[[ -s "$HOME/.cargo/env" ]] && source "$HOME/.cargo/env" [[ -s "$HOME/.cargo/env" ]] && source "$HOME/.cargo/env"

View File

@@ -57,3 +57,6 @@ 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 vim +PlugUpdate +PlugClean\! +q +q
#
diff -ruN --color .bashrc.local ~/.bashrc.local
diff -ruN --color .zshrc.local ~/.zshrc.local