LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Blogs > sumeet inani
User Name
Password

Notices

Rate this Entry

revamp your bash

Posted 05-27-2011 at 07:33 PM by sumeet inani
Updated 05-27-2011 at 07:45 PM by sumeet inani

I did following changes
Code:
in ~/.bashrc
export  HISTTIMEFORMAT="%h/%d-%H:%M:%S "
export PS1="\[\e]2;\u\a\]\[\e[31;1m\]\t \w \$\[\e[0m\]" 
#if [ "$color_prompt" = yes ]; then
#    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
#else
#    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
#fi
alias ls='ls -lA'
alias cp='cp -v'
alias rm='rm -v'
in ~/.inputrc
set completion-ignore-case On
RESULT
Code:
07:03:53 ~ $ls
total 396
drwx------  3 lxuser lxuser   4096 May 22 10:16 .adobe
-rw-r--r--  1 lxuser lxuser     24 May 21 20:44 .aspell.en.prepl
-rw-r--r--  1 lxuser lxuser     21 May 21 20:44 .aspell.en.pws
-rw-------  1 lxuser lxuser   7762 May 28 06:57 .bash_history
-rw-r--r--  1 lxuser lxuser    220 May  5 18:20 .bash_logout
-rw-r--r--  1 lxuser lxuser   3369 May 28 06:57 .bashrc
drwxr-xr-x  6 lxuser lxuser   4096 May  7 11:29 .config
drwx------  3 lxuser lxuser   4096 May  5 22:22 .dbus
drwxr-xr-x  2 lxuser lxuser   4096 May 27 23:08 Desktop
-rw-r--r--  1 lxuser lxuser     41 May 28 06:03 .dmrc
drwxr-xr-x  2 lxuser lxuser   4096 May 22 10:40 Downloads
-rw-------  1 lxuser lxuser     16 May 22 09:27 .esd_auth
-rw-r--r--  1 lxuser lxuser     32 May 21 19:31 example.txt
drwxr-xr-x  2 lxuser lxuser   4096 May 27 23:41 .fontconfig
drwx------  4 lxuser lxuser   4096 May 28 06:03 .gconf
drwx------  2 lxuser lxuser   4096 May 28 06:59 .gconfd
drwx------ 11 lxuser lxuser   4096 May 28 06:43 .gnome2
drwx------  2 lxuser lxuser   4096 May 14 23:04 .gnome2_private
drwxr-xr-x  2 lxuser lxuser   4096 May 13 00:50 .gstreamer-0.10
-rw-r--r--  1 lxuser lxuser     15 May 22 11:01 .gtk-bookmarks
drwx------  2 lxuser lxuser   4096 May  5 22:22 .gvfs
-rw-------  1 lxuser lxuser  13992 May 28 06:03 .ICEauthority
drwxr-xr-x  2 lxuser lxuser   4096 May 27 23:58 installed
-rw-------  1 lxuser lxuser     74 May 26 08:36 .lesshst
drwx------  3 lxuser lxuser   4096 May  5 22:41 .local
drwx------  3 lxuser lxuser   4096 May 22 10:16 .macromedia
-rw-r--r--  1 lxuser lxuser  49968 May 14 23:04 mod.sub
-rw-r--r--  1 lxuser lxuser  16384 May 14 23:09 .mod.sub.swp
drwx------  4 lxuser lxuser   4096 May 22 09:27 .mozilla
drwxr-xr-x  2 lxuser lxuser   4096 May 13 23:59 .mplayer
drwxr-xr-x  2 lxuser lxuser   4096 May  5 22:22 .nautilus
drwx------  3 lxuser lxuser   4096 May 21 13:16 .oald7
drwxr-xr-x 14 lxuser lxuser   4096 May 28 00:32 .opera
-rw-r--r--  1 lxuser lxuser    675 May  5 18:20 .profile
-rw-------  1 lxuser lxuser 116420 May 28 06:43 .recently-used.xbel
-rw-------  1 lxuser lxuser  12288 May 28 00:34 .swo
-rw-------  1 lxuser lxuser  12288 May 25 21:54 .swp
drwx------  4 lxuser lxuser   4096 May  7 11:08 .thumbnails
-rw-------  1 lxuser lxuser   9909 May 28 07:03 .viminfo
-rw-r--r--  1 lxuser lxuser     73 May 25 07:17 .vimrc
drwxr-xr-x  3 lxuser lxuser   4096 May 21 20:44 .vlc
-rw-------  1 lxuser lxuser   1193 May 28 06:20 .xsession-errors
-rw-------  1 lxuser lxuser   4425 May 28 00:28 .xsession-errors.old
07:06:10 ~ $history 5
  279  May/28-06:53:10 head ~/.bashrc
  280  May/28-07:01:12 vi /home/lxuser/.bashrc 
  281  May/28-07:04:00 ls
  282  May/28-07:06:10 history
  283  May/28-07:06:20 history 5
Posted in Uncategorized
Views 294 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 09:34 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration