summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bash_aliases1
-rw-r--r--.bashrc3
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/
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
}