FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 12-04-2007, 07:24 PM
"Joe Average"
 
Default Some sane defaults

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

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-04-2007, 07:26 PM
"Joe Average"
 
Default Some sane defaults

Hello,

- Allow easier searching in vim

--- /etc/vimrc 2007-06-05 12:46:37.000000000 +0200
+++ /opt/backup/etc/vimrc 2007-11-10 10:24:57.000000000 +0100
@@ -11,6 +11,10 @@
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time

+set ignorecase "
+set smartcase " Override ignore case when uppercase char is found
+set incsearch " Show search matches as we type
+
" Only do this part when compiled with support for autocommands
if has("autocmd")
" In text files, always limit the width of text to 78 characters

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 04:36 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org