alias grep='grep --color=auto' function ps() { /bin/ps $* | sed -E $'s#[0-9]+#\e[31m&\e[0m#' }The grep one will make your grep matches change color, which makes it a lot easier to find in a line. The ps one makes the pid turn red, which is really useful if you have processes with really long commandlines (like a WO app):
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUVhtUNPF_G9cpVjpHnysllidQ0xlQ-MOKoNvys1mAa7eFWsygeTlaOPyZRyGwbOx8fLpgLvzstQ2PGOVS9V6E-uxVyLTeN9x4XSWjmltIELQG9m9mzqZsDWER7yZLIhL_lk61j4dhvok/s400/Picture+1.png)
No comments:
Post a Comment