• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 329
  • Last Modified:

Unix file setting

Hello

I want to set the 'tab' option in my unix account so that when I click tab and I am filling out  a file name the rest of the file name (if file is unique) is displayed with tab, e.g

If I want to type file name 'ActionActiveSource' and this is unique name, I should just type Action and then tab to complete the rest. I figure I can enter this setting in my source file. I have a file name called local.cshr    Do I make change in this file and if so, what do I add? Thank you for all the help in advance:)
0
atwork2003
Asked:
atwork2003
  • 3
  • 3
  • 2
  • +3
1 Solution
 
ozoCommented:
in csh you can
set addsuffix
0
 
biraCommented:
0
 
TintinCommented:
In standard csh, you don't have tab file completion, this is only available in tcsh.

What Unix flavour are you running on and what exact shell/version are you running?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
gheistCommented:
Look into /etc/shells file for tcsh, pdksh or bash. If none install in your home directory and launch from profile of normal shell.

0
 
atwork2003Author Commented:
thank you for the suggestions. Here is the information u requested:

under /etc/shells
I have tcsh, ksh, etc
Also it is Sun OS 5.8

The command didnt work (set addsuffix)
0
 
TintinCommented:
/etc/shells won't really tell you what shells you have installed on the system.  Anyway, you provided the most important info that you are running Solaris 8 and it appears someone has installed tcsh.

What does

echo $SHELL

and/or

grep $LOGNAME /etc/passwd

give you for the shell?

Remember that sh and csh have no tab file completion, this is only available in tcsh, zsh, bash and ksh (with a bit of fiddling around)
0
 
gheistCommented:
tcsh autocompletes
ask your admin for bash or pdksh, sice csh scripting is a bit of nightmare.
0
 
atwork2003Author Commented:
Tintin the shell is ksh
0
 
ahoffmannCommented:
as already said: csh cannot do it with tab, but with escape
  set filec

if you need tab (for whatever reason), use tcsh, bash, ksh, pdksh, ...
0
 
TintinCommented:
The standard ksh equivalent of tab completion is Esc-=

Do you have bash on your system?  It will make your life easier.
0
 
ahoffmannCommented:
> .. bash on your system?  It will make your life easier.
that's a daring statement ;-)
It's true for someone used to various shells, but if you're new and don't know the dragons of OS, bash versions, how bash is compiled, how it uses its resource files, etc. etc. etc. ...
:() { :; };:

sorry for being off-topic
0
 
atwork2003Author Commented:
Thank you guys for brainstorming on this. Appreciate all the efforts:-) No solution but that's UNIX right?!
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 3
  • 3
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now