« Rigging the DreamHost Site of the Month ContestWant to know how to really hack? »
Custom Webmaster Shell Environment
Webmasters often use SSH to remotely admin web sites and servers, learn how to make your shell colorful and powerful using my sample .bash_profile and you can be up and running in 30 seconds!
All you have to do is create or edit your ~ root file .bash_profile to get the customization you want. The PS1 variable being exported below is the prompt. I included a few alias commands as well, which explains why the outputs from the 2 screen captures above are different for the ls command.
Simply copy and paste the below or you can download text file: Custom Pretty DreamHost .bash_profile.
# ~/.bash_profile: executed by bash(1) for login shells. umask 002 export PS1="\n\e[1;37m[\e[0;32m\u\e[0;35m@\e[0;32m\h\e[1;37m]\e[1;37m[\e[0;31m\w\e[1;37m]\n$ " export JAVA_HOME=/usr/local/dh/java alias dsiz='du -sk * | sort -n --' alias bash='clear;/bin/bash -l' alias ls='ls -lahF --color=auto'
« Rigging the DreamHost Site of the Month Contest
Want to know how to really hack? »
The love of liberty is the love of others; the love of power is the love of ourselves.
-- William Hazlitt
The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect. Tim Berners-Lee
Tags: admin, Advanced, Apache, askapache, bash, bash_profile, DreamHost, GET, Google, HowTo, Linux, Login, PDF, PHP, Port, Prompt, PS1, server, servers, Shell, shell script, Shell Scripting, SSH, stat, umask,
It's very simple - you read the protocol and write the code. -Bill Joy
HTML | DCMI | GRDDL | XOXO | XDMP | XFN | DOM | XML | XHTML 1.1 Strict | CSS 2.1 | W3C
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License, just credit with a link.
This site is not supported or endorsed by The Apache Software Foundation (ASF). All software and documentation produced by The ASF is licensed. "Apache" is a trademark of The ASF. NCSA HTTPd.
UNIX ® is a registered Trademark of The Open Group.
POSIX ® is a registered Trademark of The IEEE.