mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
Added desktop script
This commit is contained in:
21
scripts/scripts/desktop
Executable file
21
scripts/scripts/desktop
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
declare hide
|
||||||
|
declare show
|
||||||
|
|
||||||
|
zparseopts -D -E -K -- \
|
||||||
|
{h,-hide}=hide \
|
||||||
|
{s,-show}=show
|
||||||
|
|
||||||
|
if [ -n "$hide" ]; then
|
||||||
|
defaults write com.apple.finder CreateDesktop false && killall Finder
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$show" ]; then
|
||||||
|
defaults write com.apple.finder CreateDesktop true && killall Finder
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Please pass in --hide | --show"
|
||||||
|
exit 1
|
||||||
@@ -31,7 +31,7 @@ export DOWNLOADS="$HOME/Downloads"
|
|||||||
export PDFS="$HOME/Library/Mobile Documents/com~apple~Preview/Documents"
|
export PDFS="$HOME/Library/Mobile Documents/com~apple~Preview/Documents"
|
||||||
export SCREENSHOTS="$BUCKET/Pictures/Screenshots"
|
export SCREENSHOTS="$BUCKET/Pictures/Screenshots"
|
||||||
export DOTFILES="$HOME/.dotfiles"
|
export DOTFILES="$HOME/.dotfiles"
|
||||||
export DESKTOP="$HOME/Desktop"
|
#export DESKTOP="$HOME/Desktop"
|
||||||
export SCRIPTS="$HOME/.local/scripts"
|
export SCRIPTS="$HOME/.local/scripts"
|
||||||
export WORK="$HOME/Library/Mobile Documents/com~apple~CloudDocs/Work"
|
export WORK="$HOME/Library/Mobile Documents/com~apple~CloudDocs/Work"
|
||||||
export TERM=xterm-256color
|
export TERM=xterm-256color
|
||||||
|
|||||||
Reference in New Issue
Block a user