Merge branch 'master' of github.com:tgrosinger/dotfiles
This commit is contained in:
commit
1bf287607b
15
.bashrc
15
.bashrc
@ -1,7 +1,7 @@
|
||||
|
||||
# Navigation
|
||||
if [[ ! "$OSTYPE" == darwin* ]];
|
||||
then
|
||||
then
|
||||
alias ls="ls --color=auto"
|
||||
fi
|
||||
alias c="clear"
|
||||
@ -75,6 +75,19 @@ function fb() {
|
||||
fi
|
||||
}
|
||||
|
||||
# wificonnect
|
||||
# usage: wificonnect <ssid> <password>
|
||||
# Connects the computer to the provided network
|
||||
# Assumes the network interface is wlan0
|
||||
function wificonnect() {
|
||||
if [ $# -ne 2]; then
|
||||
echo "wificonnect"
|
||||
echo "usage: wificonnect <ssid> <password>"
|
||||
else
|
||||
nmcli d wifi connect $1 password $2 iface wlan0
|
||||
fi
|
||||
}
|
||||
|
||||
# Prompt Related Helpers
|
||||
|
||||
# Add color shortcuts
|
||||
|
Loading…
Reference in New Issue
Block a user