From: Nicolas Boisselier Date: Tue, 17 Mar 2015 20:40:59 +0000 (+0100) Subject: ls-tree,find-sort-mtime delete ls-time X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=a9e4d383d391cd36fce9bd9963a9f0ab8d186f87;p=nb.git ls-tree,find-sort-mtime delete ls-time --- diff --git a/etc/bashrc.alias b/etc/bashrc.alias index 1cdd1c66..d93bd819 100644 --- a/etc/bashrc.alias +++ b/etc/bashrc.alias @@ -15,7 +15,6 @@ alias mysqlshow-view="mysql -e \"SHOW FULL TABLES WHERE TABLE_TYPE LIKE 'VIEW'\" alias nmap-ping="nmap -sP -PE -PS443 -PA21,22,23,80,3389" alias arp-list="arp -an" alias pdf2jpegs='gs -dNOPAUSE -sDEVICE=jpeg -dFirstPage=1 -dLastPage=5 -sOutputFile=pdf2jpegs%d.jpg -dJPEGQ=100 -r500 -c quit' -alias ls-time="tree -tDphug" #[ "$UID" == "0" ] && grep -q '^_\?postgres:' /etc/passwd && alias psql='sudo -u postgres psql' diff --git a/etc/bashrc.function b/etc/bashrc.function index dbe2cd35..0e106cf6 100644 --- a/etc/bashrc.function +++ b/etc/bashrc.function @@ -233,3 +233,11 @@ nb-rb() { nb-hl() { cat | grep --color=auto -E "(^|($@))" } + +ls-tree() { + tree -tDphug +} + +find-sort-mtime() { + find $@ -type f -printf "%As\t%p\n" | sort -k1 -r|cut -f2 +}