Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

This is a small program for my dotfiles, its only purpose is to shorten a path to make it more readable. I initially made a python script for that purpose but I thought starting up the python interpreter every time just for that is a bit overkill.

How to use it

$ shorten [path/to/shorten] [path/parent]

For example

$ shorten ~/repos/somerepo/somedir ~/repos/

somerepo/somedir

This can be used in shell scripts, I use it for my customized oh-my-zh theme.

SOME=$(shorten $(pwd) ~/repos/)

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.