catalogs names shortcuts
How can I set catalogs names shorcuts for not typing
Code:
cd ~/Documents/work/Evg/biblatex Code:
cd working_dir_shortcut_name |
Hi,
There are more ways, here are 2: 1) Create and export a variable. Put something like this in your .bashrc or .profile: export EVG="/home/<USERNAME>/Documents/work/Evg/biblatex". After your next login you can do something like this: cd $EVG 2) Create an alias. Put something like this in your .bashrc or .profile: alias cdevg="cd ~/Documents/work/Evg/biblatex". After your next login you can do this: cdevg Hope this helps. |
Yeah, thanks! thats exactly what I did want )
|
There are other ways to do this (IMHO more elegant) by using the CDPATH variable in your shell. For example, you can use something like the following in your .bashrc file :-
export CDPATH=.:~:~/documents:~/ftps:~/bin:~/videos:~/pictures:~/bin:~/muzak:$PATH which will allow you to change to the any of the mentioned directories simply by typing in, for example :- $ cd muzak from anywhere and you will change to the /home/username/muzak directory. It is similar to the PATH variable. Do a "man bash" (if you are using bash as your shell) to get all the info. In your case you would need something like:- export CDPATH=.~:~/Documents:~/Documents/work:~/Documents/work/Evg:~/Documents/work/Evg/biblatex |
Thank you, ArfaSmif but this adds to many folders to the gloabal namespaces. For Example I have 14 folders in my Documents folder and want to have a shortcut only to one of them — if I use your method I'll get all the other 13 folders in the quick access
|
Quote:
When I type Code:
cd ~/Do Code:
cd /home/netimen/Documents/ Code:
cd $workdir/n Code:
cd ~/Documents/work/Evg/biblatex/new |
Hi,
When using my first example (export EVG="/home/<USERNAME>/Documents/work/Evg/biblatex") that should work (it does on my side): Code:
$ export TST="/home/druuna/_Schuur" |
Quote:
Code:
cd $EVG The behavior of TAB is following. When I type Code:
cd $E Code:
cd \$E Code:
cd $EVG/n |
Hi again,
I think I misunderstood your question. The variable (EVG in this case) should expand as well. If more 'things' are defined that start with a E, it will not expand (2xtab will show all that start wit E): Code:
$ echo $DLS BTW: It is good practise to always type the first 2 chars before pressing tab |
Quote:
|
Quote:
Code:
cd $EV Code:
cd \$EVG Code:
cd $EVG/ |
All times are GMT -5. The time now is 02:40 AM. |