Difference between revisions of "Bashrc"

From ArchWiki
Jump to navigation Jump to search
(New page: A place for Arch users .bashrc file tips and tricks)
 
(Added Information)
Line 1: Line 1:
A place for Arch users .bashrc file tips and tricks
+
A place for Arch users' .bashrc file tips and tricks
 +
==PS1==
 +
 
 +
==Aliases==
 +
 
 +
===Default command usage===
 +
To make bash prompt for removals
 +
alias rm='rm -i'
 +
To make spelling mistakes not matter
 +
alias unmount='umount'
 +
alias pakman='pacman'
 +
Seen in orums to force someone to learn vim
 +
alias nano='vi'
 +
===Shortcuts===
 +
 
 +
==Useful environment variables==
 +
Set a default text editor
 +
EDITOR=nano
 +
EDITOR=vi
 +
==Functions/Scripts==
 +
 
 +
==inputrc==

Revision as of 23:49, 29 January 2008

A place for Arch users' .bashrc file tips and tricks

PS1

Aliases

Default command usage

To make bash prompt for removals

alias rm='rm -i'

To make spelling mistakes not matter

alias unmount='umount'
alias pakman='pacman'

Seen in orums to force someone to learn vim

alias nano='vi'

Shortcuts

Useful environment variables

Set a default text editor

EDITOR=nano
EDITOR=vi

Functions/Scripts

inputrc