+clock function + fix for editor var

This commit is contained in:
Sebastian Tramp 2011-02-18 19:54:00 +01:00
parent a2d891e412
commit ad58509550
2 changed files with 13 additions and 0 deletions

View file

@ -4,6 +4,7 @@
# alias definitions which can be edited/modified with 'aedit' # alias definitions which can be edited/modified with 'aedit'
# #
EDITOR=vi
alias aedit=" $EDITOR ~/.zsh/aliases.zsh; source ~/.zsh/aliases.zsh" alias aedit=" $EDITOR ~/.zsh/aliases.zsh; source ~/.zsh/aliases.zsh"
alias fedit=" $EDITOR ~/.zsh/functions.zsh; source ~/.zsh/functions.zsh" alias fedit=" $EDITOR ~/.zsh/functions.zsh; source ~/.zsh/functions.zsh"
alias pedit=" $EDITOR ~/.zsh/private.zsh; source ~/.zsh/private.zsh" alias pedit=" $EDITOR ~/.zsh/private.zsh; source ~/.zsh/private.zsh"

View file

@ -83,3 +83,15 @@ function massmove () {
ls > ls; paste ls ls > ren; vi ren; sed 's/^/mv /' ren|bash; rm ren ls ls > ls; paste ls ls > ren; vi ren; sed 's/^/mv /' ren|bash; rm ren ls
} }
# Put a console clock in top right corner
# http://www.commandlinefu.com/commands/view/7916/
function clock () {
while sleep 1;
do
tput sc
tput cup 0 $(($(tput cols)-29))
date
tput rc
done &
}