FREE THOUGHT · FREE SOFTWARE · FREE WORLD

Home » Shell Scripting »  Custom Webmaster Shell Environment

Custom Webmaster Shell Environment

by Charles Torvalds comment

[hide]

DreamHost Customized Bash Shell EnvironmentWebmasters 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!


ScreenShot using the custom .bash_profile

Create the Custom Environment

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.

.bash_profile

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="ne[1;37m[e[0;32mue[0;35m@e[0;32mhe[1;37m]e[1;37m[e[0;31mwe[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'

More Reading


July 4th, 2007

Comments Welcome

My Online Tools

Related Articles
Twitter

  • askapache: Today in 1965 DEC announces PDP-8
  • hubail: RT @askapache: Make sure you unplug your Ethernet when leaving the room, or disable wifi
  • askapache: Make sure you unplug your Ethernet when leaving the room, or disable wifi
  • askapache: My servers, and me, are getting annoyed. Fail2ban works fairly well against all the Chinese brute forcing going on
  • askapache: Can't the Chinese stop ordering their hackers to hack us? Ugh
  • askapache: All I want for my bday is a bottle of American whiskey :)
  • askapache: The first Dino fossil wasn't found until 1822, we sure are young

My Picks
Newest Posts

WordPress Development
Hacking and Hackers

The use of "hacker" to mean "security breaker" is a confusion on the part of the mass media. We hackers refuse to recognize that meaning, and continue using the word to mean someone who loves to program, someone who enjoys playful cleverness, or the combination of the two. See my article, On Hacking.
-- Richard M. Stallman






It's very simple - you read the protocol and write the code. -Bill Joy

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.

Site Map | Contact Webmaster | License and Disclaimer | Terms of Service

↑ TOPMain