Sfoglia il codice sorgente

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

pull/1/head
10sr 12 anni fa
parent
commit
abcd5f0bc6
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. +6
    -0
      .bashrc

+ 6
- 0
.bashrc Vedi 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 && "$@"
}


Caricamento…
Annulla
Salva