My own fork of agnoster, optimized for a terminal that uses the solarized-light colorscheme.
A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
| # Added by install_latest_perl_osx.pl | |
| [ -r /Users/Dan/.bashrc ] && source /Users/Dan/.bashrc | |
| [[ -s "/Users/Dan/.rvm/scripts/rvm" ]] && source "/Users/Dan/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
| ## PATH variables | |
| export PATH="$HOME/bin/Racket\ v5.2.1/bin/:$PATH" # Racket | |
| export PATH=/Users/Dan/bin/google/android-sdk-macosx/tools/:$PATH #Android development | |
| alias mips='java -jar /Users/Dan/Dropbox/work/classes/cs2600/assembly/Mars_4_1.jar' #MIPS emulator (MARS) | |
| function git_prompt() { |
| #!/usr/bin/env ruby | |
| # ## An Easy Way to Compile and Run Java Classes | |
| # | |
| # System utility for compiling and running Java classes | |
| # in a specific directory structure. | |
| # | |
| # #### Recommended Installation | |
| # Save this code to a file named `easyjava`, somewhere on your HD. Then | |
| # in your `~/.bash_profile` add the following: |
| .globl main | |
| .data | |
| msgprompt: .word msgprompt_data | |
| msgres1: .word msgres1_data | |
| msgres2: .word msgres2_data | |
| msgprompt_data: .asciiz "Positive integer: " | |
| msgres1_data: .asciiz "The value of factorial(" | |
| msgres2_data: .asciiz ") is " |
| ;; a shopping trip is a | |
| ;; (make-shopping-trip string lon lon lon) | |
| ;; where name is the name of the trip | |
| ;; a is the list of items andrea should pay for | |
| ;; dj is the list of items dan and jansen should pay for | |
| ;; all is the list of items everyone should pay for | |
| ;; paid is the person who paid for the food | |
| ;;(not actually lists of items, rather, lists of prices) | |
| (define-struct shopping-trip (name a dj all paid)) |
| static void execute(int argc, char *argv[]) | |
| { | |
| pid_t childpid; /* child process ID */ | |
| childpid = fork(); | |
| if (childpid == -1) { /* in parent (returned error) */ | |
| perror("fork"); /* perror => print error string of last system call */ | |
| printf(" (failed to execute command)\n"); | |
| } | |
| if (childpid == 0) { /* child: in child, childpid was set to 0 */ |
| <?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>WorkingDirectory</key> | |
| <string>/Users/Dan/wiki/gitit/</string> | |
| <key>KeepAlive</key> | |
| <true/> | |
| <key>EnvironmentVariables</key> | |
| <dict> |
| import Mouse | |
| import Window | |
| scene (x,y) (w,h) = | |
| collage w h | |
| [ | |
| circle 10 |> filled blue | |
| |> move (x - toFloat w / 2, toFloat h / 2 - y) | |
| ] |
| import Either | |
| import Mouse | |
| import Window | |
| -- updates for movement | |
| data Update = Click (Int,Int) | TimeDelta Time | |
| -- control | |
| input = let clickPos = sampleOn Mouse.clicks Mouse.position |
| import Either | |
| import Mouse | |
| import Window | |
| -- updates for movement | |
| data Update = Click (Int,Int) | TimeDelta Time | |
| -- control | |
| -- merges the Click |