Skip to content

feat: Add option to display path relative to various options#99

Merged
reobin merged 6 commits intomainfrom
feat/full-wd-option
Nov 28, 2020
Merged

feat: Add option to display path relative to various options#99
reobin merged 6 commits intomainfrom
feat/full-wd-option

Conversation

@reobin
Copy link
Owner

@reobin reobin commented Nov 27, 2020

Closes #98

New option is named TYPEWRITTEN_RELATIVE_PATH.

4 possibles values:

  • git (default)
  • home
  • adaptive
  • off

git

The displayed directory is relative to git root if inside a git repository. If not, only basename is displayed.

home

The displayed directory is at all times relative to $HOME.

adaptive

The displayed directory is relative to git root if inside a git repository. If not, it is relative to $HOME.

off

Only display basename at all times.

@reobin reobin merged commit d56c4fe into main Nov 28, 2020
@reobin reobin deleted the feat/full-wd-option branch November 28, 2020 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Showing path relative to home instead of just dir name.

1 participant