瀏覽代碼

Added pcat alias

Taddeus Kroes 12 年之前
父節點
當前提交
90fd256a48
共有 1 個文件被更改,包括 3 次插入 和 0 次删除
  1. 3 0
      bashrc

+ 3 - 0
bashrc

@@ -92,6 +92,9 @@ alias ocaml='rlwrap ocaml'
 #   sleep 10; alert
 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$//'\'')"'
 
+# syntax-highlighted cat
+alias pcat="pygmentize -f terminal256 -O style=native -g"
+
 #
 # Environment
 #