mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +01:00
update xsessionrc:
* fix nesting. * remove OS X automatic commands that are functions in bashrc & zshrc.
This commit is contained in:
parent
4edb34892f
commit
7fa915cd3c
15
xsessionrc
15
xsessionrc
@ -1,19 +1,8 @@
|
|||||||
PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$HOME/.local/bin:$HOME/.local/sbin:$HOME/.local/games:$HOME/bin:$HOME/sbin:$HOME/games:$HOME/tmcbeans/bin:/opt/local/bin:/opt/local/sbin:/opt/local/games:/usr/local/bin:/usr/local/sbin:/usr/local/games:/bin:/sbin:/games:/usr/bin:/usr/sbin:/usr/games:$PATH
|
PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$HOME/.local/bin:$HOME/.local/sbin:$HOME/.local/games:$HOME/bin:$HOME/sbin:$HOME/games:$HOME/tmcbeans/bin:/opt/local/bin:/opt/local/sbin:/opt/local/games:/usr/local/bin:/usr/local/sbin:/usr/local/games:/bin:/sbin:/games:/usr/bin:/usr/sbin:/usr/games:$PATH
|
||||||
|
|
||||||
# Sets environment variable CPUARCH to output of "uname -p" & UNAME to "uname"
|
# Sets environment variable CPUARCH to output of "uname -p" & UNAME to "uname"
|
||||||
UNAME=`uname`
|
UNAME=$(uname)
|
||||||
CPUARCH=`uname -p`
|
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
|
|
||||||
|
|
||||||
# If we are on Mac, set update check interval to 1 day
|
|
||||||
if [[ $UNAME = "Darwin" && $USER = "root" ]]; then
|
|
||||||
defaults write /Library/Preferences/com.apple.SoftwareUpdate ScheduleFrequency 1
|
|
||||||
fi
|
|
||||||
# The above requires at least Mountain Lion.
|
|
||||||
|
|
||||||
# Use gpg-agent
|
# Use gpg-agent
|
||||||
eval $(gpg-agent --daemon)
|
eval $(gpg-agent --daemon)
|
||||||
|
Loading…
Reference in New Issue
Block a user