From cc7fc048d02391408214b9b3fadc685b497f655c Mon Sep 17 00:00:00 2001 From: lub Date: Tue, 6 Nov 2018 23:40:33 +0100 Subject: [PATCH] add .bashrc --- bashrc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 bashrc diff --git a/bashrc b/bashrc new file mode 100644 index 0000000..2c1de05 --- /dev/null +++ b/bashrc @@ -0,0 +1,22 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +function _df() { + echo "$*" + btrfs filesystem usage "$*" 2> /dev/null | grep -o 'Free .*' + btrfs filesystem df "$*" + echo +} +function dfall() { + _df /hdd + _df /ssd + _df /nvme +} + +alias ls='ls --color=auto' +PS1='`[ $? = 0 ] || echo "$? "`[\u@\h \w]\$ ' +alias docker='sudo docker' \ No newline at end of file