Skip to content

Commit

Permalink
some fixes for the bin/AutoStart.*
Browse files Browse the repository at this point in the history
allow for missing bin directory or no AutoStart.* files
allow space in the '*' part

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information
hxw committed Aug 24, 2012
1 parent 73e3c97 commit 04201f2
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions tcshrc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -169,17 +169,25 @@ if ($?prompt) then
c/\*=/x:'<number>'/ \ c/\*=/x:'<number>'/ \
n/\*/"(if of conv ibs obs bs cbs files skip file seek count)"/= n/\*/"(if of conv ibs obs bs cbs files skip file seek count)"/=
# git # git
set gitcmds = ( `ls -1 /usr/local/libexec/git-core/git-* | sed 's@^/usr/local/.*/git-@@g'` ) if (-d "/usr/local/libexec/git-core") then
complete git "p/1/(${gitcmds})/" 'n/branch/`git branch|cut -c 3-`/' 'n/co/`git branch|cut -c 3-`/' 'n/remote/(show add rm prune update)/' 'N/remote/`git remote`/' set gitcmds = ( `ls -1 /usr/local/libexec/git-core/git-* | sed 's@^/usr/local/.*/git-@@g'` )
complete git "p/1/(${gitcmds})/" \
'n/branch/`git branch|cut -c 3-`/' 'n/co/`git branch|cut -c 3-`/' \
'n/remote/(show add rm prune update)/' 'N/remote/`git remote`/'
unset gitcmds
endif


# for fun # for fun
test -x /usr/games/pom && /usr/games/pom test -x /usr/games/pom && /usr/games/pom


endif endif


# additional customisation # additional customisation
if (-d "${HOME}/bin") then set auto_start = "${HOME}/bin/AutoStart.*"
foreach script (${HOME}/bin/AutoStart.*) ls $auto_start >& /dev/null
source ${script} if ($status == 0) then
foreach script ($auto_start)
source "${script}"
end end
endif endif
unset auto_start

0 comments on commit 04201f2

Please sign in to comment.