The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - Newcomers (http://hintsforums.macworld.com/forumdisplay.php?f=15)
-   -   Installing Fink and Bash (http://hintsforums.macworld.com/showthread.php?t=4882)

osxpez 08-25-2002 10:40 AM

Quote:

Originally posted by vickishome
I think I'll run with your simpler config files until I know what I'm doing a little better.
What could ever be wrong with simplicity? :) In fact my config setup gets simpler and simpler all the time. That's what happens when I know better what I'm doing. Then I know what can be removed.

Quote:

Originally posted by vickishome
osxpez, I am curious about the backspace key problem you're having. How can I find out if I'm also having that problem (thus, require the code in the configs to remedy it)? Since I'm now running your configs, I don't know how to test to see if I require that code in my configs or not. Can you elaborate on the backspace key problem or point me to a thread where you may have discussed it before?
The problem shows for me when editing in VIM. When I hit the backspace key, the character to the left of the cursor should be erased, right? But instead it erases the character under the cursor (like the DEL key in Windows if that's familiar). The "stty" command can be used to examine and change settings having to do with the terminal and it's behaviour. "stty -a" shows all settings. It showed "erase = ^H" in my case and that made the backspace key send my terminal an erase command which deleted the wrong character. Explaining my /etc/bashrc to you made me realize that it was that one that caused the error. It contained a line reading something like "stty erase = `tput kbs`" which I read as "set erase to be Key BackSpace". So now I have deleted that part as well as the loop over /etc/profile.d/*.sh files which I didn't use anyway. So now my /etc/bashrc looks like:
Code:

$ cat /etc/bashrc
# /etc/bashrc

# System wide functions and aliases
# Environment stuff goes in /etc/profile

# are we an interactive shell?
if [ "$PS1" ]; then
    case $TERM in
        xterm*)
            PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
            ;;
        *)
            ;;
    esac
    [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "
fi

# Falesafe
alias rm='rm -i'
[peter@localhost

And I could remove the "stty" command in my local .bashrc and now backspace behaves anyway. See? The more I understand, the more I can simplify (or just remove). :)

Hope I didn't confuse you as much as I confused myself with this post.

osxpez 08-25-2002 10:50 AM

Quote:

Originally posted by sao
To be exact and precise, the following hardly seems a statement for 'most' users, but in the contrary, for all users who read it.

But avoid the "fink" command and stick with apt-get and dselect. (...)
Quite the contrary. That was advice for Vicki, who I had seen post things telling she was new to Unix and wanting to learn stuff a step at a time.

Quote:

Originally posted by sao
You can easily leave your terminal or several running in the back installing
I probably could. But I also would have to have the time testing whatever it was I had installed and also time to cope with whatever trouble it brought with it and then time to report those errors back to whom it concerns. I'll do that when I find myself needing a package that's not in "stable".

osxpez 08-25-2002 11:01 AM

One more thing, slightly off topic. I never use Apple's bundled Terminal application. It's lame and slow. From Aqua I use GLTerm which fast and the dude who made it is very friendly and responsive. Often I also use Eterm from OroborOSX. I have the full XDarwin installed as well, but I find OroborOSX most often being the best fit for me. As long as I have done my "sudo apt-get install eterm" I can just select Eterm from OroborOSX Start menu.

Anyone using Jag who can tell me if Terminal.app has gotten any faster there?

sao 08-25-2002 12:43 PM

osxpez,

Quote:

That was advice for Vicki, who I had seen post things telling she was new to Unix and wanting to learn stuff a step at a time.
Unfortunately, the posts are read by 'everyone'. Good thing that you clarify 'now' that your advice was only for Vickishome.


Quote:

I probably could
Only when you want, and it is clear to me that you don't. Which is very fine with me. But then, don't stop others from trying.


You use pre-compiled packages and you are very happy with it. And it works very well for you. Great!

I use only cutting edge unstable, and all my installation from source. And it works very well for me. Great!


So both can coexist as it is not only 'your way'...


Cheers...


All times are GMT -5. The time now is 10:35 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.