aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2016-05-20 02:02:51 +0200
committerDuncaen <mail@duncano.de>2016-05-20 02:02:51 +0200
commitb60374a38c8bdba684f6f83e755d47d41a1e0a81 (patch)
treef324b44cd7050f777a9e125867def1a6344dc1aa
parent47c6cd5f95a2c2056fd3712e610648c7355a7ec3 (diff)
downloaddotfiles-b60374a38c8bdba684f6f83e755d47d41a1e0a81.tar.gz
mksh: update
-rwxr-xr-xmkshrc.d/00-ls.sh6
-rwxr-xr-xmkshrc.d/00-misc.sh7
-rwxr-xr-xmkshrc.d/00-xbps.sh4
3 files changed, 9 insertions, 8 deletions
diff --git a/mkshrc.d/00-ls.sh b/mkshrc.d/00-ls.sh
index 9cbe39a..62ac69a 100755
--- 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
index 85d35cb..ee4c5f2 100755
--- 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
index d2ab55e..3f0b1c2 100755
--- 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