Created
May 12, 2015 11:38
-
-
Save Maddosaurus/40b63076459c6791a8c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.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" | |
ZSH_THEME="pygmalion" #war schon echt gut | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to disable bi-weekly auto-update checks. | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment the following line to change how often to auto-update (in days). | |
# export UPDATE_ZSH_DAYS=13 | |
# Uncomment the following line to disable colors in ls. | |
# DISABLE_LS_COLORS="true" | |
# Uncomment the following line to disable auto-setting terminal title. | |
# DISABLE_AUTO_TITLE="true" | |
# Uncomment the following line to disable command auto-correction. | |
# DISABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
# COMPLETION_WAITING_DOTS="true" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Uncomment the following line if you want to change the command execution time | |
# stamp shown in the history command output. | |
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# HIST_STAMPS="mm/dd/yyyy" | |
# Would you like to use another custom folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
plugins=(git archlinux) | |
source $ZSH/oh-my-zsh.sh | |
export PATH=$PATH:"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
# if [[ -n $SSH_CONNECTION ]]; then | |
# export EDITOR='vim' | |
# else | |
# export EDITOR='mvim' | |
# fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# ssh | |
# export SSH_KEY_PATH="~/.ssh/dsa_id" | |
#------------------------------------------------------------ | |
# (c) Zygmunt Krynicki 2007, | |
# Licensed under GPL, see COPYING for the whole text | |
# | |
# This script will look-up command in the database and suggest | |
# installation of packages available from the repository | |
if [[ -x /usr/lib/command-not-found ]] ; then | |
function command_not_found_handler() { | |
/usr/lib/command-not-found --no-failure-msg -- $1 | |
} | |
fi | |
#------------------------------- | |
# Aliases | |
#------------------------------- | |
alias lsl="ls -l" | |
alias cl="clear" | |
#alias st="sublime_text&" | |
#------------------------------ | |
# Dir aliases | |
#------------------------------ | |
#alias pa="builtin cd ~/Dokumente/Projektarbeit/" | |
#alias onv="builtin cd ~/onvifd/" | |
#------------------------------ | |
# Program aliases | |
#------------------------------ | |
#alias -s tex=texmaker | |
#------------------------------ | |
# Custom Scripts | |
#------------------------------ | |
ips () { | |
# determine local IP address | |
echo -n "\tLocal IPs:\n" | |
ip addr | grep inet | awk '{if(NR==3)print $2}' | |
echo -n "\n\tRemote IP:\n" | |
curl -s -m 5 http://www.wieistmeineip.de/ | grep -oE "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}" | |
} | |
#export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting | |
source "$HOME/.rvm/scripts/rvm" | |
# Setup zsh-autosuggestions | |
source ~/.zsh-autosuggestions/autosuggestions.zsh | |
# Enable autosuggestions automatically | |
zle-line-init() { | |
zle autosuggest-start | |
} | |
zle -N zle-line-init | |
# use ctrl+t to toggle autosuggestions(hopefully this wont be needed as | |
# zsh-autosuggestions is designed to be unobtrusive) | |
bindkey '^T' autosuggest-toggle | |
AUTOSUGGESTION_HIGHLIGHT_COLOR='fg=2' | |
AUTOSUGGESTION_HIGHLIGHT_CURSOR=0 | |
#Stuff for autocompletion | |
fpath=($HOME/.zsh-completions $fpath) | |
# enable autocomplete function | |
#autoload -U compinit | |
autoload -U ~/.zsh-completions/*(:t) | |
compinit | |
export EDITOR="vim" | |
alias g='grep -in' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment