diff options
author | Mark Powers <mark@marks.kitchen> | 2020-12-27 11:18:34 -0600 |
---|---|---|
committer | Mark Powers <mark@marks.kitchen> | 2020-12-27 11:18:34 -0600 |
commit | 90600e93eb3cf32b85970a45481e6dbdd557c72a (patch) | |
tree | 60da80afd4aaedc90bd690988c0a13898660c9d6 | |
parent | 3ac9f46b5739d3abf78a255b12ee1bb46f0e4a3f (diff) |
Add lh
-rw-r--r-- | .bash_aliases | 1 | ||||
-rw-r--r-- | .bashrc | 3 |
2 files changed, 3 insertions, 1 deletions
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/ @@ -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 } |