diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-12-23 18:11:42 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-12-23 18:11:42 +0800 |
| commit | a480e3fcf165f2c201b9349573669d9698da42fe (patch) | |
| tree | 297babf846d038084c4ece56881770ae172e04f7 | |
| parent | 2c7ae3439e9dd14585c0d6222c731d8e308d535f (diff) | |
update
| -rw-r--r-- | alias | 12 | ||||
| -rw-r--r-- | misc/tmux.conf | 3 | ||||
| -rwxr-xr-x | tools/init/load-settings.sh | 2 |
3 files changed, 16 insertions, 1 deletions
| @@ -329,6 +329,18 @@ image.from_data_url() { | |||
| 329 | xsel -ob | sed -E 's/^.+,//' | base64 -d >$1 | 329 | xsel -ob | sed -E 's/^.+,//' | base64 -d >$1 |
| 330 | identify $1 | 330 | identify $1 |
| 331 | } | 331 | } |
| 332 | image.text() { | ||
| 333 | convert \ | ||
| 334 | -size 230x130 \ | ||
| 335 | -background lightblue \ | ||
| 336 | -font Noto-Sans-Bold \ | ||
| 337 | -pointsize 25 \ | ||
| 338 | -fill black \ | ||
| 339 | -gravity NorthWest \ | ||
| 340 | caption:"foo" \ | ||
| 341 | -flatten \ | ||
| 342 | caption1.jpge | ||
| 343 | } | ||
| 332 | 344 | ||
| 333 | # thunderbird | 345 | # thunderbird |
| 334 | alias thunder.pull='rsync -a --delete pham@topo.tw:~/.thunderbird/ ~/.thunderbird &' | 346 | alias thunder.pull='rsync -a --delete pham@topo.tw:~/.thunderbird/ ~/.thunderbird &' |
diff --git a/misc/tmux.conf b/misc/tmux.conf index b620d5f..cbd88e3 100644 --- a/misc/tmux.conf +++ b/misc/tmux.conf | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | unbind C-b | ||
| 2 | set-option -g prefix C-g | ||
| 3 | |||
| 1 | new-session # Start a new session if none available | 4 | new-session # Start a new session if none available |
| 2 | bind C-q select-layout even-horizontal | 5 | bind C-q select-layout even-horizontal |
| 3 | bind C-w select-layout even-vertical | 6 | bind C-w select-layout even-vertical |
diff --git a/tools/init/load-settings.sh b/tools/init/load-settings.sh index b8fb974..02aa6f3 100755 --- a/tools/init/load-settings.sh +++ b/tools/init/load-settings.sh | |||
| @@ -4,7 +4,7 @@ source $SETTING_DIR/alias | |||
| 4 | [[ -d $SETTING_DIR/private ]] && source $SETTING_DIR/private/* | 4 | [[ -d $SETTING_DIR/private ]] && source $SETTING_DIR/private/* |
| 5 | 5 | ||
| 6 | # Config shell | 6 | # Config shell |
| 7 | case $SHELL in | 7 | case $0 in |
| 8 | *zsh) | 8 | *zsh) |
| 9 | setopt extended_glob | 9 | setopt extended_glob |
| 10 | fpath=($SETTING_DIR/zsh $fpath) | 10 | fpath=($SETTING_DIR/zsh $fpath) |