From 629227564af69610ef90046593f20e8d8ffe8b3f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 25 Jan 2013 15:12:41 +0100 Subject: Add solarized dircolors from dircolors-solarized git repo: https://github.com/seebi/dircolors-solarized --- .zsh/zshrc/00_colours | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.zsh/zshrc') diff --git a/.zsh/zshrc/00_colours b/.zsh/zshrc/00_colours index 11ce8ed..54f10f8 100644 --- a/.zsh/zshrc/00_colours +++ b/.zsh/zshrc/00_colours @@ -28,7 +28,7 @@ else fi # colour setup for ls -is_darwin || eval $(dircolors -b ${HOME}/.zsh/dir_colors) +is_darwin || eval $(dircolors -b ${HOME}/.zsh/dircolors.256dark) # colour setup for ls on OS X: is_darwin && export CLICOLOR=1 -- cgit v1.2.3-54-g00ecf From 04be6cf16a169bebaa3a79fbf76fb82f6cd1586d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 25 Jan 2013 15:26:23 +0100 Subject: zshrc: Add UZH chpwd profile --- .zsh/zshrc/90_profiles | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to '.zsh/zshrc') diff --git a/.zsh/zshrc/90_profiles b/.zsh/zshrc/90_profiles index 3e3354d..3e1ed22 100644 --- a/.zsh/zshrc/90_profiles +++ b/.zsh/zshrc/90_profiles @@ -6,7 +6,7 @@ # # chpwd_profiles taken from grml zshrc # -# Copyright © 2010 Tobias Klauser +# Copyright © 2010-2013 Tobias Klauser # Released under the terms of the Artistic Licence 2.0 # # Source repository: git://git.distanz.ch/dotfiles/zsh.git @@ -19,23 +19,33 @@ zstyle ':chpwd:profiles:/home/tklauser/src/linux-2.6(|/|/*)' profile di zstyle ':chpwd:profiles:/home/tklauser/projects/ines(|/|/*)' profile zhaw zstyle ':chpwd:profiles:/home/tklauser/projects/sinet(|/|/*)' profile zhaw zstyle ':chpwd:profiles:/home/tklauser/projects/hd_over_ip(|/|/*)' profile zhaw +zstyle ':chpwd:profiles:*locomotor-primitives*' profile uzh -chpwd_profile_zhaw() +chpwd_profile_distanz() { [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 print "chpwd(): Switching to profile: $profile" - export GIT_AUTHOR_EMAIL="klto@zhaw.ch" - export GIT_COMMITTER_EMAIL="klto@zhaw.ch" + export GIT_AUTHOR_EMAIL="tklauser@distanz.ch" + export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" } -chpwd_profile_distanz() +chpwd_profile_uzh() { [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 print "chpwd(): Switching to profile: $profile" - export GIT_AUTHOR_EMAIL="tklauser@distanz.ch" - export GIT_COMMITTER_EMAIL="tklauser@distanz.ch" + export GIT_AUTHOR_EMAIL="tobias.klauser@uzh.ch" + export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" +} + +chpwd_profile_zhaw() +{ + [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 + print "chpwd(): Switching to profile: $profile" + + export GIT_AUTHOR_EMAIL="klto@zhaw.ch" + export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" } function chpwd_profiles() { -- cgit v1.2.3-54-g00ecf