From 1fbb130880cc92980b8222f12c8e1261408b6d09 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Tue, 6 Jul 2010 20:16:13 +0200 Subject: Goto homedir at last action --- zsh/zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh/zshrc b/zsh/zshrc index f6f396a..cc6b9cc 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -66,7 +66,7 @@ alias purge="sudo apt-get --purge autoremove" alias svn-uscan='uscan --verbose --force-download --rename --repack --destdir=../tarballs' alias svn-bp='svn-buildpackage --svn-builder=pdebuild --svn-ignore-new' alias gendebpool='dpkg-scanpackages -m . /dev/null | gzip -9c > Packages.gz' -alias git-bp='git-buildpackage --git-ignore-new --git-pristine-tar --git-upstream-branch=upstream --git-debian-branch=master --git-builder=pdebuild --debbuildopts "-i"' +alias git-bp='git-buildpackage --git-ignore-new --git-upstream-branch=upstream --git-debian-branch=master --git-builder=pdebuild --debbuildopts "-i"' alias sfnv='uscan --verbose --no-symlink --rename' alias -g C='| wc -l' @@ -117,3 +117,5 @@ cp_p() } END { print "" }' total_size=$(stat -c '%s' "${1}") count=0 } + +cd ~/ -- cgit v1.2.3 From 9f446dae4e9bca8f70c9af93e5183ccd7d6daaab Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Wed, 7 Jul 2010 10:04:06 +0200 Subject: Goto homedir as last action --- zsh/zshrc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zsh/zshrc b/zsh/zshrc index f6f396a..b1da76c 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -34,10 +34,7 @@ autoload zmv alias c="clear && fortune" -if [ "$HOST" = "galahad" ] || [ "$HOST" = "goliath" ] || [ "$HOST" = "papin" ]; then - alias ls="ls --color=auto" -fi - +alias ls="ls --color=auto" alias l="ls -lah" alias mkdir="mkdir -p" alias rmrf="rm -rf" @@ -117,3 +114,5 @@ cp_p() } END { print "" }' total_size=$(stat -c '%s' "${1}") count=0 } + +cd ~/ -- cgit v1.2.3 From 999bdb1fde479040cbedcaf7a6eb129ff150ac6b Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Wed, 7 Jul 2010 10:04:59 +0200 Subject: Change colorscheme --- vim/vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index eae0ac3..fd16aa3 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,5 +1,5 @@ syntax on -colorscheme desert256 +colorscheme slate filetype plugin indent on set t_Co=88 " 88 colors -- cgit v1.2.3 From 31e24fa922c7ac2fd3e3057869bfd5eca50697c5 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Wed, 7 Jul 2010 10:05:10 +0200 Subject: Change font --- xorg/xdefaults | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xorg/xdefaults b/xorg/xdefaults index 660bd13..c1f8638 100644 --- a/xorg/xdefaults +++ b/xorg/xdefaults @@ -1,5 +1,5 @@ # Font -*font: -xos4-terminus-*-*-*-*-12-*-*-*-*-*-*-* +*font: -xos4-terminus-*-r-*-*-12-*-*-*-*-*-*-* # General Settings URxvt*buffered: true -- cgit v1.2.3 From 33915f55cc2760d70046b3b8caa74e905100ceb0 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Wed, 14 Jul 2010 09:41:55 +0200 Subject: Several things: * Change color * Change font * Add fip() --- zsh/zshrc | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/zsh/zshrc b/zsh/zshrc index e6477f0..9995da7 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,3 +1,5 @@ +#w +#w #PUSER=%{$(echo -n '\e[0;37m')%}%n #PATKI=%{$(echo -n '\e[0;37m')%}@ #PHOST=%{$(echo -n '\e[1;33m')%}%m @@ -115,4 +117,51 @@ cp_p() END { print "" }' total_size=$(stat -c '%s' "${1}") count=0 } +fip() { + SUBNET="" + if [[ $1 =~ ^[a-z][0-9][0-9][0-9]$ ]]; then + if [ "$(echo $1 | cut -c 1)" = "a" ]; then + SUBNET='amber' + elif [ "$(echo $1 | cut -c 1)" = "b" ]; then + SUBNET='blue' + elif [ "$(echo $1 | cut -c 1)" = "c" ]; then + SUBNET='cyan' + elif [ "$(echo $1 | cut -c 1)" = "g" ]; then + SUBNET='green' + elif [ "$(echo $1 | cut -c 1)" = "i" ]; then + SUBNET='indigo' + elif [ "$(echo $1 | cut -c 1)" = "j" ]; then + SUBNET='jade' + elif [ "$(echo $1 | cut -c 1)" = "k" ]; then + SUBNET='khaki' + elif [ "$(echo $1 | cut -c 1)" = "l" ]; then + SUBNET='lemmon' + elif [ "$(echo $1 | cut -c 1)" = "m" ]; then + SUBNET='magenta' + elif [ "$(echo $1 | cut -c 1)" = "o" ]; then + SUBNET='orange' + elif [ "$(echo $1 | cut -c 1)" = "p" ]; then + SUBNET='purple' + elif [ "$(echo $1 | cut -c 1)" = "r" ]; then + SUBNET='red' + elif [ "$(echo $1 | cut -c 1)" = "s" ]; then + SUBNET='silver' + elif [ "$(echo $1 | cut -c 1)" = "u" ]; then + SUBNET='umbra' + elif [ "$(echo $1 | cut -c 1)" = "w" ]; then + SUBNET='white' + elif [ "$(echo $1 | cut -c 1)" = "y" ]; then + SUBNET='yellow' + else + echo "Error: Unknown subnet" + fi + + if [ $SUBNET ]; then + ping $1.$SUBNET.fastwebserver.de | grep from + fi + else + echo "Syntax error: need char + 3 integer!" + fi +} + cd ~/ -- cgit v1.2.3 From d413da93da29e22be75d328acf7d8bd3da019285 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Wed, 14 Jul 2010 09:42:38 +0200 Subject: Change color --- xorg/xdefaults | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xorg/xdefaults b/xorg/xdefaults index c1f8638..a54ee42 100644 --- a/xorg/xdefaults +++ b/xorg/xdefaults @@ -1,5 +1,6 @@ # Font -*font: -xos4-terminus-*-r-*-*-12-*-*-*-*-*-*-* +#*font: -xos4-terminus-*-r-*-*-12-*-*-*-*-*-*-* +*font: xft:DejaVu Sans Mono:size=8 # General Settings URxvt*buffered: true @@ -54,7 +55,7 @@ URxvt*foreground: #ffffff #URxvt*color9: #D76666 #URxvt*color10: #B5DF8D #URxvt*color11: #FF0000 -#URxvt*color12: #729FCF +URxvt*color12: #729FCF #URxvt*color13: #FFD28F #URxvt*color14: #69C8B1 #URxvt*color15: #9AC4DD -- cgit v1.2.3