diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-11-23 11:26:32 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-11-23 11:27:21 +0800 |
commit | a83711dcad1d18e9005b238914d25def111dc516 (patch) | |
tree | 2490eb394f30aeee8a901a00a27514441e0dc0fb | |
parent | 553db930d8325a371c1605053227c2aab2ec64cb (diff) |
Update
-rw-r--r-- | alias | 8 | ||||
-rw-r--r-- | description | 1 | ||||
-rw-r--r-- | gitconfig | 3 | ||||
-rw-r--r-- | mutt/default | 3 | ||||
-rw-r--r-- | vim/vimrc | 3 |
5 files changed, 15 insertions, 3 deletions
@@ -38,6 +38,9 @@ urlencode() { | |||
38 | # curl -Gso /dev/null -w %{url_effective} --data-urlencode @- "" | 38 | # curl -Gso /dev/null -w %{url_effective} --data-urlencode @- "" |
39 | } | 39 | } |
40 | # }}} | 40 | # }}} |
41 | # ADMIN {{{ | ||
42 | alias pass.list='sudo vim /etc/passwd' | ||
43 | # }}} | ||
41 | # UNIX {{{ | 44 | # UNIX {{{ |
42 | config(){ cd ~/.config/$1; } | 45 | config(){ cd ~/.config/$1; } |
43 | alias sound="echo -ne '\a'" | 46 | alias sound="echo -ne '\a'" |
@@ -198,6 +201,7 @@ alias ssh.config="$EDITOR ~/.ssh/config" | |||
198 | alias sshd.config="sudo $EDITOR /etc/ssh/sshd_config" | 201 | alias sshd.config="sudo $EDITOR /etc/ssh/sshd_config" |
199 | alias ssh.auth="$EDITOR ~/.ssh/authorized_keys" | 202 | alias ssh.auth="$EDITOR ~/.ssh/authorized_keys" |
200 | alias ssh.known="$EDITOR ~/.ssh/known_hosts" | 203 | alias ssh.known="$EDITOR ~/.ssh/known_hosts" |
204 | alias ssh.pub="cat ~/.ssh/id_ed25519.pub" | ||
201 | alias cdssh='cd ~/.ssh' | 205 | alias cdssh='cd ~/.ssh' |
202 | alias ptt='ssh ptt' | 206 | alias ptt='ssh ptt' |
203 | alias sshv='ssh -t vps' | 207 | alias sshv='ssh -t vps' |
@@ -272,7 +276,7 @@ alias ob.rc='vim ~/.config/openbox/rc.xml' | |||
272 | # }}} | 276 | # }}} |
273 | # EDITOR: VIM {{{ | 277 | # EDITOR: VIM {{{ |
274 | alias editor='select-editor' | 278 | alias editor='select-editor' |
275 | alias vimrc='vim ~/.vimrc' | 279 | alias vimrc='vim ~/.config/vim/vimrc' |
276 | if which nvim &>/dev/null; then | 280 | if which nvim &>/dev/null; then |
277 | alias vim='nvim' | 281 | alias vim='nvim' |
278 | alias v='nvim' | 282 | alias v='nvim' |
@@ -518,6 +522,8 @@ words() { | |||
518 | # }}} | 522 | # }}} |
519 | # Nginx{{{ | 523 | # Nginx{{{ |
520 | alias vgx='sudo vim /etc/nginx/sites-enabled/vps && sudo nginx -t && sudo systemctl reload nginx' | 524 | alias vgx='sudo vim /etc/nginx/sites-enabled/vps && sudo nginx -t && sudo systemctl reload nginx' |
525 | alias ng.conf='sudo vim /etc/nginx/nginx.conf' | ||
526 | alias ng.log='tail -f /var/log/nginx/access.log' | ||
521 | alias cdngx='cd /etc/nginx' | 527 | alias cdngx='cd /etc/nginx' |
522 | # }}} | 528 | # }}} |
523 | # GIS {{{ | 529 | # GIS {{{ |
diff --git a/description b/description new file mode 100644 index 0000000..1077a27 --- /dev/null +++ b/description | |||
@@ -0,0 +1 @@ | |||
My commonly used scripts and dotfiles. Maybe you'll find something useful here | |||
@@ -37,3 +37,6 @@ | |||
37 | 37 | ||
38 | [receive] | 38 | [receive] |
39 | denyCurrentBranch = false | 39 | denyCurrentBranch = false |
40 | |||
41 | [http] | ||
42 | receivepack = true | ||
diff --git a/mutt/default b/mutt/default index f1068a2..bae76f6 100644 --- a/mutt/default +++ b/mutt/default | |||
@@ -131,7 +131,8 @@ set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S' | |||
131 | set sidebar_short_path = yes | 131 | set sidebar_short_path = yes |
132 | set sidebar_new_mail_only = yes | 132 | set sidebar_new_mail_only = yes |
133 | set sidebar_width = 17 | 133 | set sidebar_width = 17 |
134 | bind index,pager B sidebar-toggle-visible | 134 | bind index,pager b sidebar-toggle-visible |
135 | bind index,pager B bounce-message | ||
135 | bind index \Cp sidebar-prev | 136 | bind index \Cp sidebar-prev |
136 | bind index \Cn sidebar-next | 137 | bind index \Cn sidebar-next |
137 | bind index,pager \Co sidebar-open | 138 | bind index,pager \Co sidebar-open |
@@ -7,7 +7,7 @@ endif | |||
7 | 7 | ||
8 | " Get current dir | 8 | " Get current dir |
9 | " let s:home = fnamemodify(resolve(expand('<sfile>:p')), ':h') | 9 | " let s:home = fnamemodify(resolve(expand('<sfile>:p')), ':h') |
10 | let s:home = '~/helper/vim' | 10 | let s:home = '/home/pham/helper/vim' |
11 | 11 | ||
12 | " Add current dir into runtimepath | 12 | " Add current dir into runtimepath |
13 | execute 'set runtimepath+='.s:home | 13 | execute 'set runtimepath+='.s:home |
@@ -28,6 +28,7 @@ endif | |||
28 | if has('nvim') | 28 | if has('nvim') |
29 | LoadScript mini.lua | 29 | LoadScript mini.lua |
30 | else | 30 | else |
31 | colo desert | ||
31 | "LoadScript init/plugins.vim | 32 | "LoadScript init/plugins.vim |
32 | "LoadScript init/style.vim | 33 | "LoadScript init/style.vim |
33 | endif | 34 | endif |