Some sane defaults [aliases]

Joe Average joe.average4 at gmail.com
Tue Dec 4 20:24:16 UTC 2007


Hello,

This make things more sane imho, but of course ymmv.

- Add interactive options to cp, mv, rm.
- Use vi as an alias for vim
- Allow case insensitive searches in less (and case sensitive when a
capital letter is given)
- Use human readable sizes for df & du

If there are power users who hates all this then they most likely know
how to turn this off as well :=)

--- /etc/bashrc 2006-11-28 15:25:46.000000000 +0100
+++ /opt/backup/etc/bashrc      2007-11-05 19:54:04.000000000 +0100
@@ -3,7 +3,7 @@
 # System wide functions and aliases
 # Environment stuff goes in /etc/profile

 # Even for non-interactive, non-login shells.
 if [ $UID -gt 99 ] && [ "`id -gn`" = "`id -un`" ]; then
        umask 002
@@ -57,4 +57,14 @@
        unset i
        unset pathmunge
 fi
+
+alias cp='cp -iv'
+alias mv='mv -iv'
+alias rm='rm -iv'
+alias df='df -h'
+alias du='du -h --max-depth=1'
+alias vi='vim'
+alias less='less -i'
+
+
 # vim:ts=4:sw=4




More information about the fedora-list mailing list