Skip to content

bac0n/bash_completion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Expand dots to dot-dot component.

Example

my@box:/usr/local/bin$ cd ...
my@box:/usr$
my@box:/usr/local/bin$ mkdir ...
my@box:/usr/local/bin$ cd .../..../
my@box:/usr$ 
my@box:/etc$ cd /usr/local/bin/.../bin/.../bin
my@box:/bin$
my@box:/tmp$ x='0/1/2/3/4/5/6/7/8/9'; mkdir -p $x; cd $x
my@box:/tmp/0/1/2/3/4/5/6/7/8/9$ cd ...........
my@box:/tmp$
my@box:/usr/local/bin$ cd ...<tab>
my@box:/usr/local/bin$ cd ../../
my@box:/usr/local/bin$ mkdir ...
my@box:/usr/local/bin$ cd .../..../<tab>
my@box:/usr/local/bin$ cd .../../../../
my@box:/etc$ cd /usr/local/bin/.../bin/.../bin<tab>
my@box:/etc$ cd /usr/local/bin/../../bin/../../bin/
my@box:/usr/local/bin$ cd ...<tab>
my@box:/usr/local/bin$ cd ../../<tab>
somedir1  somedir2  somedir3
my@box:/usr/local/bin$ cd ../../<esc> <esc>
my@box:/usr/local/bin$ cd ....<tab>
my@box:/usr/local/bin$ cd ../../../<tab>
otherdir1  otherdir2  otherdir3

About

.... . .-.. .-.. ---

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages