From 3b0142cedcde39e4c2097ecd916a870a3ced5ec6 Mon Sep 17 00:00:00 2001 From: Vito Graffagnino Date: Tue, 8 Sep 2020 18:10:49 +0100 Subject: Added the relevent parts of the .config directory. Alss add ssh config --- .bashrc.d/04options.bash.osx | 57 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100755 .bashrc.d/04options.bash.osx (limited to '.bashrc.d/04options.bash.osx') 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 --- }}} +# +############################################################################### -- cgit v1.2.3