aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@topo.tw>2023-02-01 13:57:26 +0800
committerHsieh Chin Fan <typebrook@topo.tw>2023-02-01 13:57:26 +0800
commit6fdb10c0d1a2192de671f2c6ea899a22927f4ac7 (patch)
tree9195f181e4e9dea9bff44c6a4c11afe11e4b7776
parentc2b45d72b46354975ce1c3682585d2d6a9701de9 (diff)
Update
-rw-r--r--Makefile4
-rw-r--r--alias4
-rw-r--r--mutt/muttrc.topo4
-rw-r--r--tigrc5
-rwxr-xr-xtools/wiki/diary4
5 files changed, 8 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 9ede844..798e99d 100644
--- a/Makefile
+++ b/Makefile
@@ -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
29zsh: 29zsh:
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
34fzf: 32fzf:
35 if [ ! -d "$(HOME)/.fzf" ]; then 33 if [ ! -d "$(HOME)/.fzf" ]; then
diff --git a/alias b/alias
index 7df43d9..4d69ae4 100644
--- a/alias
+++ b/alias
@@ -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}"
9eval "${shell}env(){
10 local ENVFILE=~/.${shell}env
11 vim \$ENVFILE && source \$ENVFILE
12}"
13alias vimrc='vim ~/.vimrc' 9alias vimrc='vim ~/.vimrc'
14alias tigrc="vim ~/.tigrc" 10alias tigrc="vim ~/.tigrc"
15alias muttrc='vim ~/.config/mutt/muttrc' 11alias 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
4set my_user = "pham@mail.topo.tw"; setenv my_user "$my_user" 4set my_user = "pham@mail.topo.tw"; setenv my_user "$my_user"
5set folder = "imaps://$my_user:993/" 5set folder = ~/Maildir/
6set smtp_url = "smtp://$my_user:587" 6set smtp_url = "smtp://$my_user:587"
7set imap_pass = `pass mail/$my_user`
8set smtp_pass = "$imap_pass" 7set 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
35mailboxes +INBOX \ 34mailboxes +INBOX \
35 -label TRIP +trip \
36 +mbox \ 36 +mbox \
37 -label DC +DeltaChat \ 37 -label DC +DeltaChat \
38 "+---- Watch -----" \ 38 "+---- Watch -----" \
diff --git a/tigrc b/tigrc
index a6d2e0a..0d387cc 100644
--- a/tigrc
+++ b/tigrc
@@ -137,8 +137,9 @@ bind main gs ?@git merge %(branch) --squash
137 137
138# push 138# push
139bind main p none # override default pager binding 139bind main p none # override default pager binding
140bind main pp ?git push -u %(remote) %(branch):%(branch) 140bind main pp ?git push
141bind main pr ?git push -u '%(prompt Which remote? )' %(branch):%(branch) 141bind main pP ?git push -u %(remote) %(branch):%(branch)
142bind main pr ?git push -u %(remote) %(branch):%(branch)
142bind main pc ?git push -u %(remote) %(commit):%(branch) 143bind main pc ?git push -u %(remote) %(commit):%(branch)
143bind main pR !git push -u '%(prompt Which remote? )' %(branch):'%(prompt Which branch? )' 144bind main pR !git push -u '%(prompt Which remote? )' %(branch):'%(prompt Which branch? )'
144bind main pF ?git push --force 145bind 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
24print_today() { 24print_today() {
@@ -27,7 +27,7 @@ print_today() {
27} 27}
28 28
29edit_today() { 29edit_today() {
30 vim $today 30 vim -c Goyo $today
31} 31}
32 32
33add_entry() { 33add_entry() {