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