mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-23 03:02:52 +01:00
bashrc & zshrc: automatically enable hidden files + airdrop on Mac.
Almost fixes #13
This commit is contained in:
parent
f331acbdf5
commit
2479d7971a
8
bashrc
8
bashrc
@ -183,9 +183,15 @@ export LESS_TERMCAP_so=$'\E[01;44;33m'
|
||||
export LESS_TERMCAP_ue=$'\E[0m'
|
||||
export LESS_TERMCAP_us=$'\E[01;32m'
|
||||
|
||||
# Sets environmnet variable CPUARCH to output of "uname -p"
|
||||
# Sets environment variable CPUARCH to output of "uname -p" & UNAME to "uname"
|
||||
UNAME=`uname`
|
||||
CPUARCH=`uname -p`
|
||||
|
||||
# If we are on Mac, show hidden files in Finder and enable AirDrop over Ethernet and on unsupported (by Apple) Macs
|
||||
if [ $UNAME = "Darwin" ]; then
|
||||
defaults write com.apple.finder AppleShowAllFiles TRUE && defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
|
||||
fi
|
||||
|
||||
##### Aliases RJ706I #####
|
||||
|
||||
# To get sudo work with aliases.
|
||||
|
8
zshrc
8
zshrc
@ -113,8 +113,14 @@ export LESS_TERMCAP_so=$'\E[01;44;33m'
|
||||
export LESS_TERMCAP_ue=$'\E[0m'
|
||||
export LESS_TERMCAP_us=$'\E[01;32m'
|
||||
|
||||
# Sets environmnet variable CPUARCH to output of "uname -p"
|
||||
# Sets environment variable CPUARCH to output of "uname -p" and UNAME to "uname"
|
||||
CPUARCH=`uname -p`
|
||||
UNAME=`uname`
|
||||
|
||||
# If we are on Mac, show hidden files in Finder and enable AirDrop over Ethernet and on unsupported (by Apple) Macs
|
||||
if [ $UNAME = "Darwin" ]; then
|
||||
defaults write com.apple.finder AppleShowAllFiles TRUE && defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
|
||||
fi
|
||||
|
||||
##### Aliases RJ706I #####
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user