diff options
-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 } |