Update shell startup files.

This commit is contained in:
2014-04-17 19:36:39 +02:00
parent 2e85f7d684
commit 21b01b9274
2 changed files with 5 additions and 6 deletions

View File

@@ -53,13 +53,13 @@ showclock() {
done
}
ruler() {
ruler() {
for s in '....^....|' '1234567890'; do
w=${#s}
str=$(for (( i=1; $i<=$(( ($COLUMNS + $w) / $w )) ; i=$i+1 )); do echo -n $s; done )
str=$(echo $str | cut -c -$COLUMNS)
echo $str
done
done
}
up() {
@@ -86,6 +86,6 @@ fnottype() {
}
# simple calculator
? () {
echo "$*" | bc -l
c () {
echo "$*" | bc -l
}

View File

@@ -59,5 +59,4 @@ man() {
[[ $TERM == "urxvt" ]] && export TERM="rxvt-unicode"
alias su="su -"