Find the answer to your Linux question:
Results 1 to 4 of 4
How can I set catalogs names shorcuts for not typing Code: cd ~/Documents/work/Evg/biblatex but Code: cd working_dir_shortcut_name...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    41

    catalogs names shortcuts

    How can I set catalogs names shorcuts for not typing
    Code:
    cd ~/Documents/work/Evg/biblatex
    but
    Code:
    cd working_dir_shortcut_name

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    You could set it as a variable
    Code:
    export workdir=~/Documents/work/Evg/biblatex
    cd $workdir
    Or you could have an alias set in your bash profile
    Code:
    alias workdir='cd ~/Documents/work/Evg/biblatex'
    workdir
    Using a variable will just hold the location for you, using an alias will replace the entire command.

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Posts
    41
    thank you!

  4. #4
    Just Joined!
    Join Date
    Jul 2007
    Posts
    41
    But can I make autocompletion work like with ~:

    When I type cd ~/Do and press Tab it expands to cd /home/netimen/Documents/

    Can I have something like this: when I type cd $workdir/n and press Tab it expands to cd ~/Documents/work/Evg/biblatex/new?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...