diff options
-rw-r--r-- | alias | 8 | ||||
-rw-r--r-- | gitconfig | 2 | ||||
-rw-r--r-- | mutt/muttrc.topo | 3 | ||||
-rw-r--r-- | snippets/bash_case | 10 | ||||
-rw-r--r-- | vim/init/basic.vim | 4 |
5 files changed, 18 insertions, 9 deletions
@@ -39,7 +39,7 @@ urlencode() { | |||
39 | } | 39 | } |
40 | # }}} | 40 | # }}} |
41 | # ADMIN {{{ | 41 | # ADMIN {{{ |
42 | alias pass.list='sudo vim /etc/passwd' | 42 | alias etc.passwd='sudo vim /etc/passwd' |
43 | # }}} | 43 | # }}} |
44 | # UNIX {{{ | 44 | # UNIX {{{ |
45 | config(){ cd ~/.config/$1; } | 45 | config(){ cd ~/.config/$1; } |
@@ -199,7 +199,7 @@ imap.fetch() { | |||
199 | # }}} | 199 | # }}} |
200 | # SSH {{{ | 200 | # SSH {{{ |
201 | alias ssh.config="$EDITOR ~/.ssh/config" | 201 | alias ssh.config="$EDITOR ~/.ssh/config" |
202 | alias sshd.config="sudo $EDITOR /etc/ssh/sshd_config" | 202 | alias sshd.config="sudo vim /etc/ssh/sshd_config" |
203 | alias ssh.auth="$EDITOR ~/.ssh/authorized_keys" | 203 | alias ssh.auth="$EDITOR ~/.ssh/authorized_keys" |
204 | alias ssh.known="$EDITOR ~/.ssh/known_hosts" | 204 | alias ssh.known="$EDITOR ~/.ssh/known_hosts" |
205 | alias ssh.pub="cat ~/.ssh/id_ed25519.pub" | 205 | alias ssh.pub="cat ~/.ssh/id_ed25519.pub" |
@@ -323,8 +323,8 @@ alias cdV='cd ~/Videos' | |||
323 | alias cdM='cd ~/Music' | 323 | alias cdM='cd ~/Music' |
324 | alias cdtrash='cd ~/.local/share/Trash' | 324 | alias cdtrash='cd ~/.local/share/Trash' |
325 | # }}} | 325 | # }}} |
326 | # BLOG {{{ | 326 | # website {{{ |
327 | alias cdb='cd ~/blog' | 327 | alias cdb='cd ~/site/www' |
328 | vp() { | 328 | vp() { |
329 | [[ $HOST = vultr ]] || PREFIX='ssh -qt vps' | 329 | [[ $HOST = vultr ]] || PREFIX='ssh -qt vps' |
330 | 330 | ||
@@ -39,4 +39,4 @@ | |||
39 | denyCurrentBranch = false | 39 | denyCurrentBranch = false |
40 | 40 | ||
41 | [core] | 41 | [core] |
42 | excludesFile = /srv/git/web/gitignore | 42 | excludesFile = /srv/git/www/gitignore |
diff --git a/mutt/muttrc.topo b/mutt/muttrc.topo index c8d153d..0672b63 100644 --- a/mutt/muttrc.topo +++ b/mutt/muttrc.topo | |||
@@ -2,9 +2,8 @@ source ~/.config/mutt/default | |||
2 | 2 | ||
3 | # IMAP/SMTP settings | 3 | # IMAP/SMTP settings |
4 | set my_user = "pham@mail.topo.tw"; setenv my_user "$my_user" | 4 | set my_user = "pham@mail.topo.tw"; setenv my_user "$my_user" |
5 | set folder = "imaps://$my_user:993/" | 5 | set folder = "/home/pham/Maildir" |
6 | set smtp_url = "smtp://$my_user:587" | 6 | set smtp_url = "smtp://$my_user:587" |
7 | set imap_pass = `pass mail/$my_user` | ||
8 | set smtp_pass = "$imap_pass" | 7 | set smtp_pass = "$imap_pass" |
9 | 8 | ||
10 | # Identify meself | 9 | # Identify meself |
diff --git a/snippets/bash_case b/snippets/bash_case new file mode 100644 index 0000000..a91117c --- /dev/null +++ b/snippets/bash_case | |||
@@ -0,0 +1,10 @@ | |||
1 | case "$1" in | ||
2 | start | up) | ||
3 | vagrant up | ||
4 | ;; | ||
5 | |||
6 | *) | ||
7 | echo "Usage: $0 {start|stop|ssh}" | ||
8 | ;; | ||
9 | esac | ||
10 | |||
diff --git a/vim/init/basic.vim b/vim/init/basic.vim index 173df2f..99802c5 100644 --- a/vim/init/basic.vim +++ b/vim/init/basic.vim | |||
@@ -59,11 +59,11 @@ set winaltkeys=no " Allow alt key for mapping | |||
59 | set undofile | 59 | set undofile |
60 | if has('nvim') | 60 | if has('nvim') |
61 | set undodir=~/.vim/.undodir/nvim | 61 | set undodir=~/.vim/.undodir/nvim |
62 | set verbosefile=/tmp/nvim.log | ||
62 | else | 63 | else |
63 | set undodir=~/.vim/.undodir/vim | 64 | set undodir=~/.vim/.undodir/vim |
64 | endif | 65 | endif |
65 | 66 | ||
66 | set verbosefile=/tmp/nvim.log | ||
67 | 67 | ||
68 | " Apply plugin and indent by filetype | 68 | " Apply plugin and indent by filetype |
69 | filetype plugin indent on | 69 | filetype plugin indent on |
@@ -158,7 +158,7 @@ set tabstop=4 softtabstop=4 | |||
158 | set expandtab | 158 | set expandtab |
159 | 159 | ||
160 | " Invisible chars | 160 | " Invisible chars |
161 | set nolist | 161 | set list |
162 | set listchars=tab:»·,extends:>,precedes:< | 162 | set listchars=tab:»·,extends:>,precedes:< |
163 | 163 | ||
164 | " }}} | 164 | " }}} |