summaryrefslogtreecommitdiff
path: root/.bashrc.d/04options.bash.osx
diff options
context:
space:
mode:
authorVito Graffagnino <vito@graffagnino.xyz>2020-09-08 18:10:49 +0100
committerVito Graffagnino <vito@graffagnino.xyz>2020-09-08 18:10:49 +0100
commit3b0142cedcde39e4c2097ecd916a870a3ced5ec6 (patch)
tree2116c49a845dfc0945778f2aa3e2118d72be428b /.bashrc.d/04options.bash.osx
parent8cc927e930d5b6aafe3e9862a61e81705479a1b4 (diff)
Added the relevent parts of the .config directory. Alss add ssh config
Diffstat (limited to '.bashrc.d/04options.bash.osx')
-rwxr-xr-x.bashrc.d/04options.bash.osx57
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 --- }}}
+#
+###############################################################################