You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
392 B
Bash

6 years ago
#
# ~/.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'