Skip to content

Commit

Permalink
feat: change vim alias, add launchd scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Simpson committed Nov 27, 2013
1 parent 6470b12 commit 93da81e
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bash/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ alias phpmamp='/Applications/MAMP/bin/php/php5.4.4/bin/php'
alias pubkey='more ~/.ssh/id_rsa.pub | pbcopy | echo '\''=> Public key copied to pasteboard.'\'''
alias server='open http://localhost:8000 && python -m SimpleHTTPServer'
alias restart_apache='/Applications/MAMP/bin/apache2/bin/apachectl restart'
alias g='grunt '
alias g='grunt'
alias restart='source ~/.zshrc'
alias rebuild='/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user'
alias h='history'
Expand Down
13 changes: 13 additions & 0 deletions launch-scripts/cleanDownloads.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
function moveDownloads {
mkdir -p /Users/asimpson/Desktop/old-downloads
/usr/local/bin/tag --set Red /Users/asimpson/Desktop/old-downloads
for file in /Users/asimpson/Downloads/*
do
if [ "$file" ];then
mv "$file" /Users/asimpson/Desktop/old-downloads/
fi
done
}

moveDownloads
17 changes: 17 additions & 0 deletions launch-scripts/com.simpson.move-downloads.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.simpson.move-downloads</string>
<key>ProgramArguments</key>
<array>
<string>/Users/asimpson/.dotfiles/launch-scripts/cleanDownloads.sh</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Weekday</key>
<integer>1</integer>
</dict>
</dict>
</plist>
17 changes: 17 additions & 0 deletions launch-scripts/com.simpson.skype-attachments.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.simpson.skype-attachments</string>
<key>ProgramArguments</key>
<array>
<string>/Users/asimpson/.dotfiles/launch-scripts/skypeAttachments.sh</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Weekday</key>
<integer>1</integer>
</dict>
</dict>
</plist>
11 changes: 11 additions & 0 deletions launch-scripts/skypeAttachments.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
function deleteSkype {
for file in /Users/asimpson/Desktop/skype-attachments/*
do
if [ "$file" ];then
mv "$file" /Users/asimpson/.Trash/
fi
done
}

deleteSkype
2 changes: 1 addition & 1 deletion zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ZSH=$HOME/.oh-my-zsh

if [ -x /usr/local/bin/mvim ]; then
alias vim="mvim -v"
alias v="mvim -v"
fi

# Set name of the theme to load.
Expand Down

0 comments on commit 93da81e

Please sign in to comment.