diff options
| author | Hsieh Chin Fan <typebrook@topo.tw> | 2023-02-01 13:57:26 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@topo.tw> | 2023-02-01 13:57:26 +0800 |
| commit | 6fdb10c0d1a2192de671f2c6ea899a22927f4ac7 (patch) | |
| tree | 9195f181e4e9dea9bff44c6a4c11afe11e4b7776 | |
| parent | c2b45d72b46354975ce1c3682585d2d6a9701de9 (diff) | |
Update
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | alias | 4 | ||||
| -rw-r--r-- | mutt/muttrc.topo | 4 | ||||
| -rw-r--r-- | tigrc | 5 | ||||
| -rwxr-xr-x | tools/wiki/diary | 4 |
5 files changed, 8 insertions, 13 deletions
| @@ -27,9 +27,7 @@ console: | |||
| 27 | sudo ln -sf `pwd`/misc/vconsole.conf /etc/vconsole.conf | 27 | sudo ln -sf `pwd`/misc/vconsole.conf /etc/vconsole.conf |
| 28 | 28 | ||
| 29 | zsh: | 29 | zsh: |
| 30 | ln -sf `pwd`/zsh/zshenv ~/.zshenv | 30 | curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bash |
| 31 | mkdir -p ~/.config/zsh | ||
| 32 | ln -sf `pwd`/zsh/zshrc ~/.config/zsh/.zshrc | ||
| 33 | 31 | ||
| 34 | fzf: | 32 | fzf: |
| 35 | if [ ! -d "$(HOME)/.fzf" ]; then | 33 | if [ ! -d "$(HOME)/.fzf" ]; then |
| @@ -6,10 +6,6 @@ eval "${shell}rc(){ | |||
| 6 | local RCFILE=$XDG_CONFIG_HOME/${shell}/.${shell}rc | 6 | local RCFILE=$XDG_CONFIG_HOME/${shell}/.${shell}rc |
| 7 | vim \$RCFILE && source \$RCFILE | 7 | vim \$RCFILE && source \$RCFILE |
| 8 | }" | 8 | }" |
| 9 | eval "${shell}env(){ | ||
| 10 | local ENVFILE=~/.${shell}env | ||
| 11 | vim \$ENVFILE && source \$ENVFILE | ||
| 12 | }" | ||
| 13 | alias vimrc='vim ~/.vimrc' | 9 | alias vimrc='vim ~/.vimrc' |
| 14 | alias tigrc="vim ~/.tigrc" | 10 | alias tigrc="vim ~/.tigrc" |
| 15 | alias muttrc='vim ~/.config/mutt/muttrc' | 11 | alias muttrc='vim ~/.config/mutt/muttrc' |
diff --git a/mutt/muttrc.topo b/mutt/muttrc.topo index 2fb5f35..b0a50a2 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 = ~/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 |
| @@ -33,6 +32,7 @@ set mask="!(INBOX|mbox|Sent|Trash|Drafts|DeltaChat|hometeach|osm|arch-general|mu | |||
| 33 | 32 | ||
| 34 | # Sidebar | 33 | # Sidebar |
| 35 | mailboxes +INBOX \ | 34 | mailboxes +INBOX \ |
| 35 | -label TRIP +trip \ | ||
| 36 | +mbox \ | 36 | +mbox \ |
| 37 | -label DC +DeltaChat \ | 37 | -label DC +DeltaChat \ |
| 38 | "+---- Watch -----" \ | 38 | "+---- Watch -----" \ |
| @@ -137,8 +137,9 @@ bind main gs ?@git merge %(branch) --squash | |||
| 137 | 137 | ||
| 138 | # push | 138 | # push |
| 139 | bind main p none # override default pager binding | 139 | bind main p none # override default pager binding |
| 140 | bind main pp ?git push -u %(remote) %(branch):%(branch) | 140 | bind main pp ?git push |
| 141 | bind main pr ?git push -u '%(prompt Which remote? )' %(branch):%(branch) | 141 | bind main pP ?git push -u %(remote) %(branch):%(branch) |
| 142 | bind main pr ?git push -u %(remote) %(branch):%(branch) | ||
| 142 | bind main pc ?git push -u %(remote) %(commit):%(branch) | 143 | bind main pc ?git push -u %(remote) %(commit):%(branch) |
| 143 | bind main pR !git push -u '%(prompt Which remote? )' %(branch):'%(prompt Which branch? )' | 144 | bind main pR !git push -u '%(prompt Which remote? )' %(branch):'%(prompt Which branch? )' |
| 144 | bind main pF ?git push --force | 145 | bind main pF ?git push --force |
diff --git a/tools/wiki/diary b/tools/wiki/diary index 04cf5b6..3995ecf 100755 --- a/tools/wiki/diary +++ b/tools/wiki/diary | |||
| @@ -18,7 +18,7 @@ specify_date() { | |||
| 18 | done | 18 | done |
| 19 | 19 | ||
| 20 | FILE=~/log/diary/20$YEAR-$MONTH-$DAY.md | 20 | FILE=~/log/diary/20$YEAR-$MONTH-$DAY.md |
| 21 | vim $FILE | 21 | vim -c 'Goyo' $FILE |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | print_today() { | 24 | print_today() { |
| @@ -27,7 +27,7 @@ print_today() { | |||
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | edit_today() { | 29 | edit_today() { |
| 30 | vim $today | 30 | vim -c Goyo $today |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | add_entry() { | 33 | add_entry() { |