Only initialize OS-specific shell aliases on the target OS

This commit is contained in:
2020-05-03 16:00:46 +01:00
parent 57bd402736
commit 75ec8125d9
3 changed files with 14 additions and 10 deletions

View File

@@ -2,6 +2,17 @@
# macOS Specific
#
# Aliases
alias o="open"
# Flush DNS cache
alias flush_dns="dscacheutil -flushcache"
# Open man page in Preview.
pman () {
man -t "${1}" | open -f -a /Applications/Preview.app
}
# Fix wifi issues on OS X 10.10.x Yosemite.
# - from: https://medium.com/@mariociabarra/wifried-ios-8-wifi-performance-issues-3029a164ce94
alias fix_wifi="sudo ifconfig awdl0 down"