Skip to content

Instantly share code, notes, and snippets.

@WenxiJin
Last active July 8, 2016 14:08
Show Gist options
  • Save WenxiJin/35efe4c055a6eeadcc80baa9caef7d44 to your computer and use it in GitHub Desktop.
Save WenxiJin/35efe4c055a6eeadcc80baa9caef7d44 to your computer and use it in GitHub Desktop.
Personal part of .zshrc file
# zsh theme contains git, svn prompts
ZSH_THEME="awesomepanda"
# ll
alias ll="ls -la"
# emacs daemon
export ALTERNATE_EDITOR=""
export EDITOR="emacsclient -t" # $EDITOR should open in terminal
export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI with non-daemon as alternate
alias e="emacsclient -t" # used to be "emacs -nw"
alias sec="sudo emacsclient -t" # used to be "sudo emacs -nw"
alias ec="emacsclient -c -a emacs" # new - opens the GUI with alternate non-daemon
# terminal color
if [ "$COLORTERM" = "gnome-terminal" ] || [ "$COLORTERM" = "xfce4-terminal" ] || [ "$TERM" = "xterm" ]
then
export TERM=xterm-256color
elif [ "$COLORTERM" = "rxvt-xpm" ]
then
export TERM=rxvt-256color
fi
# tmux color
alias tmux="TERM=xterm-256color tmux"
# toolchain - Sophion
export PATH=$PATH:/opt/eclipse/gnutools/arm-eabi/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment