From ba7d06593bb044d3260bc3339e7813bbe4e5a78b Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Fri, 29 Jul 2011 01:40:10 +0200 Subject: [PATCH] Remove old gebner prompt. --- Makefile | 4 ++-- zfuncs/prompt_gebner_setup | 33 --------------------------------- 2 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 zfuncs/prompt_gebner_setup diff --git a/Makefile b/Makefile index 55b7efd..7fc7a88 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -FILES = ratpoisonrc vimrc Xresources zshrc $(wildcard zfuncs/*) emacs.el \ +FILES = ratpoisonrc vimrc Xresources zshrc emacs.el \ bashrc bash_completion screenrc commonshrc gnomerc gvimrc ifeq "$(USER)" "gebner" @@ -15,7 +15,7 @@ endif all: $(FILES) $(XFILES) install: $(FILES) $(XFILES) - mkdir -p ~/.zfuncs ~/.ssh + mkdir -p ~/.ssh for i in $(FILES); do install -m0644 $$i ~/.$$i; done for i in $(XFILES); do install -m0755 $$i ~/.$$i; done diff --git a/zfuncs/prompt_gebner_setup b/zfuncs/prompt_gebner_setup deleted file mode 100644 index 2f5b0b6..0000000 --- a/zfuncs/prompt_gebner_setup +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/zsh - -autoload colors; colors -local host_color user_color user_sym user_prompt host_prompt - -case "$HOST" in -schnecke1) host_color=blue ;; -schnecke2) host_color=green ;; -achatina) host_color=red ;; -*) host_color=yellow ;; -esac - -case "$USER" in -gebner) - user_color=green - user_sym=\$ - ;; -root) - user_color=red - user_sym=\# - ;; -*) - user_color=yellow - user_sym=\% -esac - -user_prompt="%{$fg[$user_color]%}$USER%{$reset_color%}" -host_prompt="%{$fg[$host_color]%}$HOST%{$reset_color%}" - -PS1="$user_prompt@$host_prompt %~ [%?] $user_sym " -PS2="%_ ... " -PS3="? " -PS4="%N:%i: "