I have the following lines in my .cshrc file:
# Change the format of the command prompt
alias setprompt 'set prompt="${system}:${cwd}[ \! ] --> "'
alias cd 'chdir \!* && setprompt'
setprompt
# These aliases are necessary to make my command prompt display the correct path after using a pushd or popd command
alias pushd 'pushd \!* && setprompt'
alias popd 'popd \!* && setprompt'
This is so the current working directory is always displayed on my command line. I have a few questions about this:
1. Let's say I am in the directory foo/, and I have a symbolic link "bar" that points to this location:
/home/temp/data/
If I type in the command 'cd bar', my command prompt will look like this:
system_name:/foo/bar[ 1 ] -->
instead of like this:
system_name:/home/temp/data[ 1 ] -->
Basically, how do I get the command prompt to resolve symbolic links and display their full paths?
2. What does "\!" (without the quotes) represent? What about "\!*" (without the quotes)? These expressions appear in my .cshrc file above, but I don't understand what they are doing. Google search isn't very good at searching for symbols.
# Change the format of the command prompt
alias setprompt 'set prompt="${system}:${cwd}[ \! ] --> "'
alias cd 'chdir \!* && setprompt'
setprompt
# These aliases are necessary to make my command prompt display the correct path after using a pushd or popd command
alias pushd 'pushd \!* && setprompt'
alias popd 'popd \!* && setprompt'
This is so the current working directory is always displayed on my command line. I have a few questions about this:
1. Let's say I am in the directory foo/, and I have a symbolic link "bar" that points to this location:
/home/temp/data/
If I type in the command 'cd bar', my command prompt will look like this:
system_name:/foo/bar[ 1 ] -->
instead of like this:
system_name:/home/temp/data[ 1 ] -->
Basically, how do I get the command prompt to resolve symbolic links and display their full paths?
2. What does "\!" (without the quotes) represent? What about "\!*" (without the quotes)? These expressions appear in my .cshrc file above, but I don't understand what they are doing. Google search isn't very good at searching for symbols.