File: cdargs-tcsh.csh

package info (click to toggle)
cdargs 1.35-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 728 kB
  • sloc: cpp: 1,185; sh: 494; lisp: 70; makefile: 15; csh: 3
file content (24 lines) | stat: -rw-r--r-- 814 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# (C) 2002-2005 Stefan Kamphausen

# (T)CShell extensions written by
# Stefan Kamphausen
# Ruediger Goetz <www.r-goetz.de>

# Note: this is currently BY FAR not as advanced as the bash stuff
# written by Dan!

# Just the basic cdargs functionality for tcshell
alias cv 'cdargs \!* && cd `cat $HOME/.cdargsresult`'

# add current directory with description:
alias ca 'cdargs --add=:\!*":"$cwd'
# don't blame me if this is wrong! It took me quite a while to find in
# st**id tcsh docs *grrr* (insert "sorry-to-the-developers" here). Too
# few examples and too much fuss with the colons (is there any reason
# that just escaping the colon with a backslash doesn't work?!? That
# would be very intuitive and common practice).


# Simple completion (thanks RG)
complete cv 'n@*@`cat -s ~/.cdargs | sed -e "s/ .*//"`@'