Permalink
Browse files

lsc2 proba rozrozniania kolorami

  • Loading branch information...
1 parent 3a68ff7 commit 0f0be18f972b20f46666e711c0a4c18b8864b32e @rafpacut committed May 2, 2012
Showing with 32 additions and 0 deletions.
  1. +32 −0 lsc
View
32 lsc
@@ -1,5 +1,7 @@
#!/bin/bash
+
+
lsc()
{
for i in *
@@ -17,3 +19,33 @@ lsc()
done
}
+
+lsc2()
+{
+ old_color="01;34"
+ new_color="01;40"
+ `sed -i s/$old_color/$new_color/ ~/.dircolors`
+ for i in *
+ do
+ if [ -e $i/$USER.start ] && [ ! -e $i/$USER.end ]; then
+ echo $i
+ fi
+ done
+ exec bash
+
+ old_color=$new_color
+ new_color="01;45"
+
+ `sed -i s/$old_color/$new_color/ ~/.dircolors`
+ for i in *
+ do
+ if [ ! -e $i/$USER.end ]; then
+ echo $i
+ fi
+ done
+ exec bash
+
+ old_color=$new_color
+ new_color="01;34"
+ `sed -i s/$old_color/$new_color/ ~/.dircolors`
+}

0 comments on commit 0f0be18

Please sign in to comment.