[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howtos:software:efficient_cli_navigation [2012/09/26 02:51 (UTC)] – moved from the general howtos namespace mfillpothowtos:software:efficient_cli_navigation [2012/11/11 20:29 (UTC)] (current) – [CDPATH] sycamorex
Line 100: Line 100:
  
 <code>CDPATH=$CDPATH:~/data/projects/slackbuilds/</code> <code>CDPATH=$CDPATH:~/data/projects/slackbuilds/</code>
 +
 +Please note the path included in the CDPATH variable is the path to the **parent directory** where the said directories are located. 
  
 After you have sourced ''.bashrc'' (''source ~/.bashrc''), you can ''cd'' to any of those directories from any place: After you have sourced ''.bashrc'' (''source ~/.bashrc''), you can ''cd'' to any of those directories from any place:
Line 105: Line 107:
 <code>$ pwd <code>$ pwd
 /home/user/.config/xfce4 /home/user/.config/xfce4
-$ cd ya[TAB]+$ cd yajl
 /home/user/data/projects/slackbuilds/yajl</code> /home/user/data/projects/slackbuilds/yajl</code>
 +
 +If you would like to enable Tab completion within the directories added through the CDPATH variable, you need to install ''bash-completion'' from Slackware's ''/extra'' directory.
  
 <note important>It is NOT recommended to give your directories names similar to the system ones, eg. ''usr'', ''etc'', which can result in unpredictable behaviour.</note> <note important>It is NOT recommended to give your directories names similar to the system ones, eg. ''usr'', ''etc'', which can result in unpredictable behaviour.</note>
 howtos:software:efficient_cli_navigation ()