From abcd5f0bc6b7772af4800a5fd2d7a8f0aca5c099 Mon Sep 17 00:00:00 2001 From: 10sr Date: Sat, 24 Sep 2011 15:00:18 +0900 Subject: [PATCH] .bashrc: add function p and c, but they dont expand alias... --- .bashrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.bashrc b/.bashrc index 45c08f5..003c33c 100755 --- a/.bashrc +++ b/.bashrc @@ -40,6 +40,12 @@ alias xunp="file-roller -h" alias pacome="sudo \paco -D" # type trash >/dev/null 2>&1 && alias rm=trash +p(){ + "$@" | $PAGER +} +c(){ + "$@" | cat +} safe-cmd(){ type $1 >/dev/null 2>&1 && "$@" }