2
I work a lot in two folders:
/home/valter/Dropbox/Development/git/valter
/home/valter/Dropbox/Development/git/company
I would like to create command like:
$valter
and enter in /home/valter/Dropbox/Development/git/valter
and
$company
and enter in /home/valter/Dropbox/Development/git/company
/home/valter/Dropbox/Development/git/company
I tried create some alias in ~/.bashrc
but nothing works so far.
alias valter="cd /home/valter/Dropbox/Development/git/valter/"
update
@mpy:
meniac chef: valter
No command 'valter' found, did you mean:
Command 'qalter' from package 'torque-client' (universe)
Command 'qalter' from package 'gridengine-client' (universe)
Command 'qalter' from package 'torque-client-x11' (universe)
valter: command not found
The alias should work. Did you
source ~/.bashrc
? The$
in$company
means this is the prompt?! You can also define a variablecompany=/home/valter/Dropbox/Development/git/company
and the usecd $company
or (what is a benefit compared to the alias) usecp something $company
. – mpy – 2013-05-10T14:11:37.390yes mpy, I did in my
/home/valter/.bashrc
– Valter Silva – 2013-05-10T14:12:47.853What is the error when using the alias? – mpy – 2013-05-10T14:13:45.993
1@ValterHenrique Please try in a new window/session. – OmidTahouri – 2013-05-10T14:15:05.633
1it works Omid, please put this as answer so I can choose it! Thank you! – Valter Silva – 2013-05-10T14:17:11.547
Pinging @OmidTahouri – Valter Henrique, you always need to explicitly @-mention users in order for them to receive a reply. – slhck – 2013-05-10T14:18:27.990