Browse Source

.bashrc: add function p and c, but they dont expand alias...

pull/1/head
10sr 12 years ago
parent
commit
abcd5f0bc6
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      .bashrc

+ 6
- 0
.bashrc View File

@@ -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 && "$@"
}


Loading…
Cancel
Save