From 10e4019640664ae3e33b22fa7d91c68ba6d5f29f Mon Sep 17 00:00:00 2001 From: Mike Beattie Date: Sun, 27 May 2018 20:00:15 +1200 Subject: ZSH: remove unused (by me) aliases and functions Signed-off-by: Mike Beattie --- .zshrc | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/.zshrc b/.zshrc index e99308e..62a7bd0 100644 --- a/.zshrc +++ b/.zshrc @@ -120,7 +120,6 @@ fi alias whois='whois -h geektools.com' alias df='df -h' -alias cls=clear alias cscs='clear;printf "\033[3J"' # Do we have GNU ls of a new enough version for color? (ls --help 2>/dev/null |grep -- --color=) >/dev/null && \ @@ -130,17 +129,9 @@ alias ip='ip --color' alias ipb='ip --color --brief' alias dir='ls -lhga' alias du='du -h' -alias f=finger alias ftp=ncftp -alias md=mkdir -alias rd=rmdir -alias k=killall alias mtr='mtr --curses' -#alias su='su -' -#if [ -e `which reportbug 2>/dev/null` ]; then -# alias bug='reportbug -b' -#fi -alias stardate='date "+%y%m.%d/%H%M"' + # I don't like the zsh builtin time command. if [ -e /usr/bin/time ] ; then alias time=/usr/bin/time ; fi @@ -183,17 +174,4 @@ bindkey "\e[3~" delete-char # Delete ########################################################## # Functions -# Return the size of a directory. -dirsize() { - pushd >/dev/null; - chdir $1; - du |tail --lines 1; - popd >/dev/null; -} - -# Calculator -calc () { echo $* |bc -l } - -# This fingers @host. -@ () { finger @$1 } -- cgit v1.2.3