Some sane defaults [aliases]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux