maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   another key like tilde in terminal (https://talk.maemo.org/showthread.php?t=66772)

ahbarnasha 2010-12-08 22:56

another key like tilde in terminal
 
I have a general question about the linux terminal:

Is there a way to make your own ~?

~ is nice for when you want to go to home, but if there is another folder that you use a lot, can you choose another symbol that has the same effect for folder as ~ has for home?

I now use aliases like this:
cdf
lsf

to cd and ls to f, where f is the folder I use a lot, but having a symbol like ~ would make it easier since I often want to cd/ls to other folders within f.

Does anybody have an idea?

Thanks in advance,
AhBarnasha

kureyon 2010-12-08 23:27

Re: another key like tilde in terminal
 
key bar for xterm

Michmo 2010-12-08 23:39

Re: another key like tilde in terminal
 
Of course, go to here and follow the instructions.

ahbarnasha 2010-12-09 22:59

Re: another key like tilde in terminal
 
thank you for your replies but it was not really what I was looking for.

Quote:

Originally Posted by kureyon (Post 892790)

there was some nice info here and I used it to add tilde to the keybar

Quote:

Originally Posted by Michmo (Post 892799)
Of course, go to here and follow the instructions.

like I said I use aliases but I am looking for something else, I'll try to explain better this time.

there is a folder, I'll call him hank
I use hank a lot
I want a symbol, for instance @
and I want @ to act exactly like ~ but for hank instead of for home/user/

so that ls @/jack
becomes ls hank/jack

I hope this is more clear

Thanks in advance,
AhBarnasha

kureyon 2010-12-10 05:49

Re: another key like tilde in terminal
 
You could use shell variables:

Code:

[1|user@Nokia-N900|/]export sd="/media/mmc1/"
[1|user@Nokia-N900|/]cd $sd/DCIM
[1|user@Nokia-N900|/media/mmc1/DCIM]


ahbarnasha 2010-12-11 12:46

Re: another key like tilde in terminal
 
Quote:

Originally Posted by kureyon (Post 893786)
You could use shell variables:

Code:

[1|user@Nokia-N900|/]export sd="/media/mmc1/"
[1|user@Nokia-N900|/]cd $sd/DCIM
[1|user@Nokia-N900|/media/mmc1/DCIM]


Thank you!


All times are GMT. The time now is 02:30.

vBulletin® Version 3.8.8