# $FreeBSD: releng/11.0/etc/coot/dot.cshrc 278616 2015-02-12 05:35:00Z cperciva
#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
# more examples available at /usr/share/examples/csh/
#
alias h history 25
alias j jobs -l
alias la ls -aF
alias lf ls -FA
alias ll ls -lAF
pkg supgrade
:ALIAS
supgrade: upgrade -r Synth
echo '\
# Functions\
alias function '\''( set argv = ( \\\!* ) ; source ~/.cshfuncs )'\' >> ~/.cshrc
echo 'switch ("$1")\
case "sudo":\
shift\
if ( "$argv" == "pkg upgrade" ) \\
command sudo pkg upgrade -r Synth\
exit\
default:\
echo "Function $1 not set."\
exit\
endsw'
Did you tried something like: alias "pkg upgrade" "pkg upgrade -r Synth"?That's not the issue - aliases can only contain single word names.
It does not allow "alias pkg upgrade pkg upgrade -r Synth" - as "upgrade" in the alias name is ignored. I am looking for a workaround on this issue.