dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit b60374a38c8bdba684f6f83e755d47d41a1e0a81
parent 47c6cd5f95a2c2056fd3712e610648c7355a7ec3
Author: Duncaen <mail@duncano.de>
Date:   Fri, 20 May 2016 02:02:51 +0200

mksh: update

Diffstat:
mkshrc.d/00-ls.sh | 6++++--
mkshrc.d/00-misc.sh | 7+++----
mkshrc.d/00-xbps.sh | 4++--
3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/mkshrc.d/00-ls.sh b/mkshrc.d/00-ls.sh @@ -1,3 +1,5 @@ -alias ls="ls -hF --color" -alias sl="ls" +alias ls='ls -hF --color' +alias sl='ls' +alias ltoday='lr -1 -t "mtime >= \"00:00:00\"" -t "! name =~ \"^[.]{1,2}$\""' +alias lftoday='ltoday -t "type == f"' diff --git a/mkshrc.d/00-misc.sh b/mkshrc.d/00-misc.sh @@ -1,6 +1,5 @@ alias wanip='curl ipinfo.io/ip' -psgrep() { -} - -# alias agsed="ag -l $1 | xargs sed -ri.bak -e 's/$1/$2/g'" +psgrep() { ps up $(pgrep -f $@) 2>&-; } +psofgrep() { lsof -p $(pgrep -f $@ | tr '\012' ,); } +lsofgrep() { lsof $@; } diff --git a/mkshrc.d/00-xbps.sh b/mkshrc.d/00-xbps.sh @@ -1,5 +1,5 @@ if [ -x /usr/bin/xbps-install ]; then - alias xi='sudo xbps-install' - alias xr='sudo xbps-remove' + alias xi='doas -- xbps-install' + alias xr='doas -- xbps-remove' alias xq='xbps-query' fi