Skip to content

fabian0010/dotfiles-shorten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published