Click to See Complete Forum and Search --> : Don't bash the alias! It's not just for criminals and spies


fancypiper
07-27-2002, 10:36 PM
# fancypiper ./.bashrc for user phil
# User specific aliases and functions

# Alter the ls command
alias ls='ls -a'
alias lls='ls -la'

# Connect/disconnect the internet by modem
alias dial='/sbin/ifup ppp0'
alias hangup='/sbin/ifdown ppp0'

# Launch links with my linux links page
alias links='links /home/phil/.links/startpage.htm'

# Power down/reboot
alias off='shutdown -h now'
alias boot='shutdown -r now'

# For Redhat editor because I forget which one I use in which distro
# alias pico='pico -w'
# alias nano='pico -w'

# For Gentoo editor because I forget which one I use in which distro
alias pico='nano -w'
alias nano='nano -w

# launching window manager/desktop environments from console login
alias a="echo DESKTOP=AfterStep > ~/.desktop;startx"
alias ice="echo DESKTOP=icewm > ~/.desktop;startx"
alias kde="echo DESKTOP=KDE3 > ~/.desktop;startx"
alias wm="echo DESKTOP=WindowMaker > ~/.desktop;startx"
alias sf="echo DESKTOP=Sawfish > ~/.desktop;startx"
alias g="echo DESKTOP=Gnome > ~/.desktop;startx"
alias x="echo DESKTOP=XFce > ~/.desktop;startx"
alias bb="echo DESKTOP=BlackBox > ~/.desktop;startx"
alias fb="echo DESKTOP=FluxBox > ~/.desktop;startx"
alias e="echo DESKTOP=Enlightenment > ~/.desktop;_STARTX"

# This script needs to be on the bottom of the file or RH updates will fsck it up
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

Alex Cavnar, aka alc6379
07-29-2002, 01:35 AM
here's one of my faves. Some distros even include it by default:

alias ls='/bin/ls -a --color'

I like seeing all of the .files in a directory, and I think the color is PREEETY!

:D