It is currently Tue, 30 Nov 2021 18:00:36 GMT



 
Author Message
 Aliases in X - where defined?
I have a bunch of aliases defined in ~/.bash_profile which work fine for
the console command line, but they aren't carried through into X for
xterms.

Where are aliases for xterms defined?

I'm running RH 7.1 and Ximian Gnome/Sawfish.

Regards,
Charles Sullivan



 Wed, 25 Feb 2004 21:34:47 GMT   
 Aliases in X - where defined?
Another question along these same lines...

When I use the bash shell (I do have aliases in .bashrc) I don't
seem to be able to do command line editing or history. I can
do "set -o vi" and see that it is in fact set, but when I hit
the escape key to get into edit mode it doesn't do anything.

I can run pdksh and do command line editing just fine, but I
prefer bash because it has pushd and popd. Is there some special
deal to get it to enter the edit mode?

Odd thing is, I run bash on my Linux box at work and it does
command line editing just fine, didn't do anything different...



 Fri, 27 Feb 2004 00:43:39 GMT   
 Aliases in X - where defined?
Are you hitting 'esc + k' or just 'esc'?

-S



 Fri, 27 Feb 2004 00:56:51 GMT   
 Aliases in X - where defined?
You need to make sure you have the readline package installed. See:
http://speakeasy.rpmfind.net/linux/rpm2html/search.php?query=readline

Michael Davis

news:3B9B9D13.B789402B@austin.rr.com...



 Fri, 27 Feb 2004 03:17:18 GMT   
 Aliases in X - where defined?

Put them in your .bashrc

Huy



 Fri, 27 Feb 2004 04:42:35 GMT   
 Aliases in X - where defined?
Well, I'm just hitting the escape key which should get me
into the command line editing mode. Works like a champ on
my Linux box at work...


 Fri, 27 Feb 2004 12:45:02 GMT   
 Aliases in X - where defined?
readline? I can do command line editing with pdksh, does bash
require that a special separate library be installed to do it?


 Fri, 27 Feb 2004 13:00:25 GMT   
 Aliases in X - where defined?

If the escape key is redefined I'm sure not the one that did it. I
can create a new user account, set bash as the login shell, and still
get this symptom. Today I searched out the most recent rpm of bash
and installed it, same problem. I'm using Redhat 7 purchased at
retail and I've run up2date on it...

I would try that but I don't seem to be able to boot my Linux computer
now. Looks like the MBR got corrupted. I can mount the filesystems
when I boot "Tom's really tiny bootable Linux" from floppy and see
what's there but that's it. Don't know if its the drive or something
hosed on the motherboard, everything is old. Thanks for the suggestions
though. I think I'll pick up some newer stuff and reinstall with
CD's from work.



 Fri, 27 Feb 2004 13:01:01 GMT   
 Aliases in X - where defined?
On Mon, 10 Sep 2001 05:00:25 GMT,
    Bill Carter <nos...@austin.rr.com> wrote:

It does, and it is highly unlikely you don't have it installed.

The usualy reason for the problem is the environment variable
INPUTRC pointing to a file called /etc/inputrc.  If you create the
file .inputrc in your home directory with the following contents
and unset the INPUTRC variable you have permanent "set -o vi" whihc
also works for other programs using the readline library such as gdb.

::::::::::::::
.inputrc
::::::::::::::
set editing-mode vi

You can also replace the contents of /etc/inputrc if you like.

Villy



 Fri, 27 Feb 2004 15:23:46 GMT   
 Aliases in X - where defined?
In article <3B9B9D13.B7894...@austin.rr.com>,
Bill Carter  <nos...@austin.rr.com> wrote:

This screw-up of vi command line editing was a common rh problem.
By default the bash uses INPUTRC which runs a system inputrc which
killed the vi mode. Not sure if this is the problem you are having
but I solved it by adding
export INPUTRC=~/.inputrc
to bash_profile
and then created a ~/.inputrc containing the line
set editing-mode vi

This might be more than rh, but that is what I have access to at the
moment.
--
http://www.math.fsu.edu/~bellenot
bellenot <At/> math.fsu.edu
+1.850.644.7189 (4053fax)



 Sat, 28 Feb 2004 17:15:34 GMT   
 
   [ 13 post ] 

Similar Threads

1. gcc #define #define #define

2. How to define aliases on startup

3. format of user-defined alias file

4. help defining csh alias

5. Define Tcsh Alias with $ Character as Regexp

6. tcsh: define function-like alias

7. : Alias defining

8. Define alias for a metacharacter in [t]csh?

9. Where are aliases defined for /bin/sh?


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software