diff options
Diffstat (limited to '.bashrc.d/04options.bash.osx')
| -rwxr-xr-x | .bashrc.d/04options.bash.osx | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/.bashrc.d/04options.bash.osx b/.bashrc.d/04options.bash.osx new file mode 100755 index 0000000..bcb58fc --- /dev/null +++ b/.bashrc.d/04options.bash.osx @@ -0,0 +1,57 @@ +############################################################################### +# +# Bind commands - Auto completion --- {{{ +# +############################################################################### + +bind 'set completion-ignore-case on' +bind 'set show-all-if-ambiguous on' + +############################################################################### +# +# Bind commands - Auto completion --- }}} +# +############################################################################### +############################################################################### +# +# History control --- {{{ +# +############################################################################### + +# append to the history file, don't overwrite it + +shopt -s histappend + +############################################################################### +# +# History control --- }}} +# +############################################################################### +############################################################################### +# +# STARTUP MESSAGES --- {{{ +# +############################################################################### + +prompt +clear +echo "Welcome to "`scutil --get ComputerName`"/"`ipconfig getifaddr en0` "["`sw_vers -productName`"@"`sw_vers -productVersion`"]" +echo +echo -e "Ethernet:\t `ipconfig getifaddr en0 `" +echo -e "WiFi:\t\t `ipconfig getifaddr en1 `" +echo -e "External:\t `wget -qO - http://icanhazip.com`" +echo + +### Startup messages +df -hl | grep 'disk0s2' | awk '{print "MacOSX-HD :" $4"/"$2" free ("$5" used)"}' +df -hl | grep 'disk0s4' | awk '{print "MacOSX-Data :"$4"/"$2" free ("$5" used)"}' +df -hl | grep 'disk0s12' | awk '{print "MacOSX-Data2 :"$4"/"$2" free ("$5" used)"}' +df -hl | grep 'disk0s11' | awk '{print "MacOSX-Data3 :"$4"/"$2" free ("$5" used)"}' +echo +w + +############################################################################### +# +# STARTUP MESSAGES --- }}} +# +############################################################################### |
