From 667391bac5b3560e4ab370305ebdb7c466838e06 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Thu, 27 Apr 2023 14:52:46 +0100 Subject: [PATCH] Add some more aliases --- .bashrc.d/ll | 1 + .bashrc.d/psgrep | 1 + .bashrc.d/tree | 1 + 3 files changed, 3 insertions(+) create mode 100644 .bashrc.d/ll create mode 100644 .bashrc.d/psgrep create mode 100644 .bashrc.d/tree diff --git a/.bashrc.d/ll b/.bashrc.d/ll new file mode 100644 index 0000000..343a7fe --- /dev/null +++ b/.bashrc.d/ll @@ -0,0 +1 @@ +if ! alias ll >/dev/null 2>&1; then function ll() { ls -l "${@}"; } && export -f ll; fi diff --git a/.bashrc.d/psgrep b/.bashrc.d/psgrep new file mode 100644 index 0000000..1a3818c --- /dev/null +++ b/.bashrc.d/psgrep @@ -0,0 +1 @@ +[[ ! -x $(which psgrep 2>/dev/null) ]] && function psgrep() { ps -ef | grep "${@}" | grep -v ${$}; } && export -f psgrep diff --git a/.bashrc.d/tree b/.bashrc.d/tree new file mode 100644 index 0000000..1d6abf1 --- /dev/null +++ b/.bashrc.d/tree @@ -0,0 +1 @@ +[[ -x $(which tree 2>/dev/null) ]] && alias tree="tree -AQh --du"