summaryrefslogtreecommitdiff
path: root/.bashrc.d/04options.bash.osx
blob: bcb58fcd6149dd62d8b907eef78aeaee70451d6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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 --- }}}
#
###############################################################################