John Ankarström  committed dd905d2

Added `c.zsh` (for fast compiling and running, however extremely simple). Removed `reload` alias (see `aliases.zsh`)

  • Participants
  • Parent commits 57bf42a
  • Branches default

Comments (0)

Files changed (5)

File load/aliases.zsh

     # Allow commands after sudo to be alias expanded
     # (an alias ending in a space allows the next word to be alias expanded)
 alias sudo="sudo "
+alias cd="d"
 alias ..="cd .."
 alias ...="cd ../.."
-alias cd="d"
 alias pu="pushd"
 alias po="popd"
 alias vc="vim ~/.zsh"
 alias cl="clear;ls -G"
-alias ls="ls -G" # Enable ls colours
-alias reload="source ~/.zshrc"
+alias ls="ls -G" # Enable `ls` colors
+# alias reload="source ~/.zshrc" # Do not use as of now. Messes up every single custom command.
 alias hs="hg status"
 alias gs="git status"

File load/fn/c.zsh

+function c {
+    gcc $*;
+    ./a.out;

File load/functions.zsh

 load fn/syntax/zsh-syntax-highlighting
 load fn/git
 load fn/hg
+load fn/c

File load/prompt.zsh

-    PROMPT="%{$PR_YELLOW%}%n %{$PR_WHITE%}%~ %{$PR_NO_COLOR%}←  "
+    PROMPT="%{$PR_YELLOW%}%n %{$PR_WHITE%}%~%{$PR_CYAN%}:$(ls -l | awk '!/^d/{print }' | wc -l | sed 's/^ *//g')%{$PR_NO_COLOR%} ←  "
     RPROMPT='%{$PR_BLUE%}$(git_prompt_info)$(hg_prompt_info) %{$PR_YELLOW%}%D{%H:%M} %{$PR_BLUE%}%D{%d}%{$PR_NO_COLOR%}'

File load/variables.zsh

 ### Environment variables
-export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Cellar/fish/1.23.1/bin:/usr/X11R6/bin:/usr/local/bin:~/bin
+export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Cellar/fish/1.23.1/bin:/usr/X11R6/bin:/usr/local/bin:/opt/local/bin:~/bin:/Users/john/Library/Haskell/ghc-7.0.4/lib
+for d in /Users/john/Library/Haskell/ghc-*/lib/*/bin; do PATH="$PATH:$d"; done
+export MANPATH=$MANPATH:/opt/local/share/man
+export INFOPATH=$INFOPATH:/opt//local/share/info
 export SHELL=$(whence -p zsh)           # Let apps know the full path to zsh
 export DIRSTACKSIZE=10                  # Max number of dirs on the dir stack
 export EDITOR="vim"