Felix Schulte escribi?:
> On 6/6/06, Josh Hurst <joshhurst at gmail.com> wrote:
>> I've tried my luck of ksh93r (the standalone binary from AT&T
>> downloads) as user login shell.
>> To make things more comfortable I added the following lines to my
>> ~/.profile (I think Roland Manz wrote these lines):
>> ----X-CUT-HERE-X--------X-CUT-HERE-X--------X-CUT-HERE-X----
>> # TABTAB completion mod by Roland Manz
>> emacs_completion_tab_count=0
>> function emacs_completion
>> {
>>     if [[ ${.sh.edchar} == "$(printf "\t")" ]] then
>>         emacs_completion_tab_count=$((emacs_completion_tab_count + 1))
>>
>>         if [ $emacs_completion_tab_count -eq 1 ] ; then
>>             .sh.edchar="$(printf "\E\E")"
>>         elif [ $emacs_completion_tab_count -ge 2 ] ; then
>>             .sh.edchar="$(printf "\E=")"
>>         fi
>>     else
>>         emacs_completion_tab_count=0
>>     fi
>> }
>>
>> trap emacs_completion KEYBD
>> set -o emacs
>> ----X-CUT-HERE-X--------X-CUT-HERE-X--------X-CUT-HERE-X----
>> After log in into CDE ksh93 works very well - except that the TABTAB
>> mod only works for Console type terminals but not work the normal CDE
>> terminal windows.
>> Does anyone have an explanation for this? Bug or feature?
> The profile scripts are only read by login shells, unfortunately
> Dtterm does not treat all shells as login shells. Pls try whether
> adding "Dtterm*LoginShell: true" to your $HOME/.Xdefaults file solves
> the problem.
hi, on HP-UX at least the comments in dtprofile explain how to force the 
loading of .profile
you need to bracket the profile with an if [ ! "$DT" ]....fi and set
in .dtprofile: DTSOURCEPROFILE=true
for example this way each time you start an xterm you get  your defaults...
the -ls option is also useful..

--steph


Reply via email to