From a480e3fcf165f2c201b9349573669d9698da42fe Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 23 Dec 2021 18:11:42 +0800 Subject: update --- alias | 12 ++++++++++++ misc/tmux.conf | 3 +++ tools/init/load-settings.sh | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/alias b/alias index 64e2767..514a9f3 100644 --- a/alias +++ b/alias @@ -329,6 +329,18 @@ image.from_data_url() { xsel -ob | sed -E 's/^.+,//' | base64 -d >$1 identify $1 } +image.text() { + convert \ + -size 230x130 \ + -background lightblue \ + -font Noto-Sans-Bold \ + -pointsize 25 \ + -fill black \ + -gravity NorthWest \ + caption:"foo" \ + -flatten \ + caption1.jpge +} # thunderbird 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 @@ +unbind C-b +set-option -g prefix C-g + new-session # Start a new session if none available bind C-q select-layout even-horizontal 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 [[ -d $SETTING_DIR/private ]] && source $SETTING_DIR/private/* # Config shell -case $SHELL in +case $0 in *zsh) setopt extended_glob fpath=($SETTING_DIR/zsh $fpath) -- cgit v1.2.3-70-g09d2