Skip to content

Instantly share code, notes, and snippets.

@fredefox
Created June 15, 2016 22:39
Show Gist options
  • Save fredefox/7b5b2c7533b3258b077e0547d7e310d3 to your computer and use it in GitHub Desktop.
Save fredefox/7b5b2c7533b3258b077e0547d7e310d3 to your computer and use it in GitHub Desktop.
# Path to your oh-my-zsh installation.
export ZSH=/home/fredefox/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
export UPDATE_ZSH_DAYS=30
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
plugins=(git command-not-found z)
# User configuration
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
# export MANPATH="/usr/local/man:$MANPATH"
source $ZSH/oh-my-zsh.sh
# export LANG=en_DA.UTF-8
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
export EDITOR=vim
export VISUAL=vim
unsetopt auto_cd
function signature() { printf "%s [%s]" "`whoami`" "`date`" }
ZSH_CONFIG="$HOME/.zshrc"
alias zshconfig="$EDITOR $ZSH_CONFIG && . $ZSH_CONFIG"
alias pandoc="pandoc -V papersize:\"a4paper\""
alias xpath="xmllint --xpath"
alias v="view"
alias loc="locate --basename"
# ghc also contains a less permissive warning defer-typed-holes,
# but it's actually quite convenient to only get warnings while
# developing because that way it's possible to stay in the interactive
# prompt and inspect the bindings.
alias crepl="cabal repl --ghc-options='-Wall -fdefer-type-errors'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment