Bashrc

From ArchWiki
Revision as of 23:49, 29 January 2008 by Alex anthony (talk | contribs) (Added Information)
Jump to navigation Jump to search

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