1#   Copyright
2#
3#       Copyright (C) 2011 Erwin Waterlander
4#
5#   License
6#
7#       This program is free software; you can redistribute it and/or modify
8#       it under the terms of the GNU General Public License as published by
9#       the Free Software Foundation; either version 2 of the License, or
10#       (at your option) any later version.
11#
12#       This program is distributed in the hope that it will be useful,
13#       but WITHOUT ANY WARRANTY; without even the implied warranty of
14#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15#       GNU General Public License for more details.
16#
17#       You should have received a copy of the GNU General Public License
18#       along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20#   Description
21#
22#       Define a shell alias for wcd(1), which itself change
23#       directories, so it must be done in a shell alias.
24#
25#       This file is in /etc/profile.d/ and it should be sourced from
26#       a shell startup file: ~/.<shell>rc
27
28##if ( ! ${?WCDHOME} ) then
29##    setenv WCDHOME "$HOME/.wcd"
30##endif
31
32if ( ${?WCDHOME} ) then
33    alias wcd "rm -f $WCDHOME/bin/wcd.go ; BINDIR/PROGRAM \!* ; source $WCDHOME/bin/wcd.go"
34else
35    alias wcd "rm -f $HOME/bin/wcd.go ; BINDIR/PROGRAM \!* ; source $HOME/bin/wcd.go"
36endif
37
38# End of file
39