I've been using Linux for over 10 years, however it wasn't until I started getting paid to use Linux on a daily basis that I saw the value in keeping "dot files".
What I want is not a fancy prompt or tweaks to make a self-consistent system. I want to customize my environment so I can do more with less.
I'm still in the idealized design phase of this ideal environment. The core principles that I am going for are as follows:
My end goal is this: No matter what host I am connected to, I want the following: h-environment
What I want is not a fancy prompt or tweaks to make a self-consistent system. I want to customize my environment so I can do more with less.
I'm still in the idealized design phase of this ideal environment. The core principles that I am going for are as follows:
- The environment should work on any system with at least SSH and bash.
- If part of my environment depends on an external tool, the environment should be able to attempt to get that tool onto the system.
- If it is not possible to bring in an external tool, degrade gracefully.
- Include as many custom configurations as possible.
My end goal is this: No matter what host I am connected to, I want the following:
- The name of the host I am on to be clear.
- A core set of my commonly used tools.
- Personal configurations for as many tools as possible.
#!/bin/bash
# Fetch URLs from tinyurl.com
# Make sure you have curl and bc installed before you run this.
#
# Joel Franusic 2008 - Public Domain Sofware
MIN=1
MAX=10000
SLEEP_MAX=3
l=(0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z)
for((n=$MIN; n<$MAX; n++)); do
r=`echo "obase=36;$n" | bc`
num=''
echo -n "$n "
for c in $r; do
c=${c#0} # remove zero padding, yay variable mangling!
num=$num${l[$c]};
done
echo -n "$num "
result=`curl -s -I "http://tinyurl.com/$num" | grep -o -e 'http.*'`
echo -n "$result"
echo ''
sleep $((RANDOM%$SLEEP_MAX))
done
