From 0452e8413309db16634e7b8e3188c90da8700b02 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 15 Apr 2022 08:59:35 +0800 Subject: Update --- alias | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/alias b/alias index 9f5bc4f..e537867 100644 --- a/alias +++ b/alias @@ -73,7 +73,8 @@ fd() { echo /proc/$$/fd; ls -l /proc/$$/fd; } port() { sudo lsof -i :$1; } alias ports='sudo lsof -i -Pn | grep LISTEN' alias src="source $HOME/.$(basename $SHELL)rc" -alias ll='ls -alh' +alias ll='ls -lh' +alias lla='ls -lha' llw() { which $1 | xargs ls -alh; } alias hg='history | grep' alias rmrf='[[ `pwd` =~ ^$HOME.* ]] && [[ ! $PATH =~ `pwd` ]] && rm -rf' @@ -274,11 +275,11 @@ alias df='df -h' # docker alias dk='docker' -alias dps='docker ps' -alias dis='docker images' alias dc='docker-compose' +alias dis='docker images' +alias dps='docker ps' +alias dpsa='docker ps -a' alias drm='docker rm `docker ps -aq`' -alias dr='docker run --rm -it' alias drsh='docker run --rm -it --entrypoint /bin/sh $@' alias drbash='docker run --rm -it --entrypoint /bin/bash $@' docker.tags() { -- cgit v1.2.3-70-g09d2 From 7bcdb84b1ebf1741c426947e811d32452ce6031f Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 15 Apr 2022 08:59:55 +0800 Subject: Update --- zsh/_wi.sh | 6 +++++- zsh/_ww.sh | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/zsh/_wi.sh b/zsh/_wi.sh index d99518b..f33d0ae 100644 --- a/zsh/_wi.sh +++ b/zsh/_wi.sh @@ -1,7 +1,11 @@ #compdef wi function _wi() { - compadd -S '' $(cd ~/vimwiki && find -not -path "./logseq/*" -name '*.md' -printf "%f\n" | sed -E '/^[0-9]{4}-[0-9]{2}-[0-9]{2}/d') + compadd -S '' $( + cd ~/vimwiki && \ + find -not -path "./logseq/*" -name '*.md' -printf "%f\n" | \ + sed -E '/^[0-9]{4}-[0-9]{2}-[0-9]{2}/d; s/.md$//' + ) } _wi diff --git a/zsh/_ww.sh b/zsh/_ww.sh index d998099..2a1e323 100644 --- a/zsh/_ww.sh +++ b/zsh/_ww.sh @@ -1,7 +1,11 @@ #compdef ww function _ww() { - compadd -S '' $(cd ~/vimwiki && find -not -path "./logseq/*" -name '*.md' -printf "%f\n" | sed -E '/^[0-9]{4}-[0-9]{2}-[0-9]{2}/d') + compadd -S '' $( + cd ~/vimwiki && \ + find -not -path "./logseq/*" -name '*.md' -printf "%f\n" | \ + sed -E '/^[0-9]{4}-[0-9]{2}-[0-9]{2}/d; s/.md$//' + ) } _ww -- cgit v1.2.3-70-g09d2 From 5f94532c5a7603e8b79d0d755de95220185aed38 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 15 Apr 2022 11:54:57 +0800 Subject: Update --- alias | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alias b/alias index e537867..28050a5 100644 --- a/alias +++ b/alias @@ -77,7 +77,7 @@ alias ll='ls -lh' alias lla='ls -lha' llw() { which $1 | xargs ls -alh; } alias hg='history | grep' -alias rmrf='[[ `pwd` =~ ^$HOME.* ]] && [[ ! $PATH =~ `pwd` ]] && rm -rf' +alias rmrf='[[ `pwd` =~ ^$HOME.* ]] && rm -rf' alias rr='_move_to_tmp' alias sound="echo -ne '\a'" alias pst="pstree -ps $$" -- cgit v1.2.3-70-g09d2 From 7bc48f847670293d1acb70c7dcbceaf55fef1e40 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 15 Apr 2022 12:54:20 +0800 Subject: Update --- misc/openbox/rc.xml | 6 ++++++ tools/unix/fdswap | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100755 tools/unix/fdswap diff --git a/misc/openbox/rc.xml b/misc/openbox/rc.xml index 4584121..d0ab52e 100644 --- a/misc/openbox/rc.xml +++ b/misc/openbox/rc.xml @@ -930,6 +930,12 @@ center + + + center + center + +