Reply
Thread Tools
Guest | Posts: n/a | Thanked: 0 times | Joined on
#1
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
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#2
 
Michmo's Avatar
Posts: 60 | Thanked: 24 times | Joined on Sep 2010
#3
Of course, go to here and follow the instructions.
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#4
thank you for your replies but it was not really what I was looking for.

Originally Posted by kureyon View Post
key bar for xterm
there was some nice info here and I used it to add tilde to the keybar

Originally Posted by Michmo View Post
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
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#5
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]
 

The Following 3 Users Say Thank You to kureyon For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#6
Originally Posted by kureyon View Post
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!
 
Reply

Thread Tools

 
Forum Jump


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