summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-01-11 21:50:45 +0100
committerFlorian Pritz <f-p@gmx.at>2009-01-11 21:50:45 +0100
commit319468950b2cf83c9fe0365a05463507f099319b (patch)
treea9bb1e1f611e15f63130a12759f4064977d6d9ce /.zshrc
parent4d0cc55330dc6d7d3b31a31977747c39125dbd6d (diff)
downloaddotfiles-319468950b2cf83c9fe0365a05463507f099319b.tar.gz
dotfiles-319468950b2cf83c9fe0365a05463507f099319b.tar.xz
made ls looks nicer :)
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc21
1 files changed, 20 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index 460c307..fdd9b66 100644
--- a/.zshrc
+++ b/.zshrc
@@ -1,6 +1,6 @@
#----------------------------------------------------
# File: ~/.zshrc
-# Version: 0.3.7
+# Version: 0.3.8
# Author: Florian "Bluewind" Pritz <f-p@gmx.at>
#----------------------------------------------------
@@ -124,6 +124,8 @@ export green='\e[0;32m'
export GREEN='\e[1;32m'
export blue='\e[0;34m'
export BLUE='\e[1;34m'
+export purple='\e[0;35m'
+export PURPLE='\e[1;35m'
export cyan='\e[0;36m'
export CYAN='\e[1;36m'
export NC='\e[0m'
@@ -144,6 +146,12 @@ fg_no_colour=$'%{\e[0m%}'
fg_white=$'%{\e[1;37m%}'
fg_black=$'%{\e[0;30m%}'
+if [ "$TERM" = "linux" ]; then
+ ${HOME}/bin/parse_xdefaults.sh
+ clear #for background artifacting
+fi
+
+
#--------------------
# Terminal title
#--------------------
@@ -256,6 +264,17 @@ update_zshrc () {
bk() { cp -b ${1} ${1}_`date +%Y-%m-%d_%T` }
+cd() {
+ builtin cd $@ &&
+ ls
+}
+
+# idea by Gigamo http://bbs.archlinux.org/viewtopic.php?pid=478094#p478094
+ls () {
+ /bin/ls -lhbtF --color=auto $@ &&
+ echo "${PURPLE}Files: ${BLUE}$(/bin/ls -l $@ | grep -v "^[l|d|total]" | wc -l) ${GREEN}--- ${PURPLE}Directories: ${BLUE}$(/bin/ls -l $@ | grep "^d" | wc -l)${NC}"
+}
+
# jump between directories
# Copyright 2005 Nikolai Weibull <nikolai@bitwi.se>
# notice: option AUTO_PUSHD has to be set