add .bashrc

master
lub 6 years ago
parent c9e9cc1fd2
commit cc7fc048d0

@ -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'
Loading…
Cancel
Save