diff --git a/bash/bash_functions b/bash/bash_functions index fb04401..4f33d76 100644 --- a/bash/bash_functions +++ b/bash/bash_functions @@ -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 } diff --git a/zsh/zshrc b/zsh/zshrc index e396020..904d94a 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -59,5 +59,4 @@ man() { [[ $TERM == "urxvt" ]] && export TERM="rxvt-unicode" - - +alias su="su -"