From 90600e93eb3cf32b85970a45481e6dbdd557c72a Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sun, 27 Dec 2020 11:18:34 -0600 Subject: Add lh --- .bash_aliases | 1 + .bashrc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.bash_aliases b/.bash_aliases index ebd14a2..bd0224a 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -16,4 +16,5 @@ alias ll='ls -alFh' alias la='ls -a' alias l='ls -CF' alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' +alias lh='ls -trhgGN --color=always | cut -d" " -f4-' # via https://shkspr.mobi/blog/2020/12/anatomy-of-an-ls-command/ diff --git a/.bashrc b/.bashrc index 024657f..99afea6 100644 --- a/.bashrc +++ b/.bashrc @@ -159,6 +159,7 @@ PROMPT_COMMAND='history -a' source $HOME/.cargo/env +# compile a markdown file, and display it in a browser (surf) show_markdown () { - pandoc $1 > /tmp/show_markdown.html; firefox /tmp/show_markdown.html + pandoc $1 > /tmp/show_markdown.html; surf /tmp/show_markdown.html } -- cgit v1.2.3