Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Shellscripting question

Name: Anonymous 2012-02-07 10:24

How could I make a shellscript which will echo "Welcome home, oniichan!" whenever I cd to my home directory?

Name: Anonymous 2012-02-08 7:45

>>19
That'll just close your shell.
Better also put exec $SHELL on the bottom of your ~/bin/cd.

Note that is horribly inefficient, makes your shell restart every time and parse its configuration files (and print any fortunes or whatever) every time you cd. >>13 is a way better solution.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List