Skip to content

Instantly share code, notes, and snippets.

@fredefox
Last active August 29, 2015 13:57
Show Gist options
  • Save fredefox/9352326 to your computer and use it in GitHub Desktop.
Save fredefox/9352326 to your computer and use it in GitHub Desktop.
Some nifty stuff for your shell.
# Environment
export WORKSPACE="$HOME/workspace"
export LESSOPEN='|pygmentize %s'
export LESSCOLORIZER='pygmentize'
export EDITOR=vim
export VISUAL="subl -w"
export PAGER="less -SF"
# Aliases
alias e=subl
alias x='xdg-open'
# Functions
function zedit {
$EDITOR $HOME/.zshenv
source $HOME/.zshenv
}
function google-this {
URL="https://www.google.com/search?q=$1"
echo $URL
xdg-open $URL
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment