From 6de05ec05d0f0a02fcf03fb79c829a49826972d4 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 25 Aug 2023 09:20:52 -0500 Subject: [PATCH] pyenv + build id's --- home/private_dot_config/zsh/conf.d/aliases.zsh | 3 +++ home/private_dot_config/zsh/dot_zprofile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/home/private_dot_config/zsh/conf.d/aliases.zsh b/home/private_dot_config/zsh/conf.d/aliases.zsh index b8b1cdd..2ad284d 100644 --- a/home/private_dot_config/zsh/conf.d/aliases.zsh +++ b/home/private_dot_config/zsh/conf.d/aliases.zsh @@ -42,3 +42,6 @@ alias dots-add='chezmoi re-add --interactive' alias viv-remote='python3 <(curl -fsSL viv.dayl.in/viv.py)' alias viv-dev='python3 <(curl -fsSL https://raw.githubusercontent.com/daylinmorgan/viv/dev/src/viv/viv.py)' + +# increment a build number and maintain Lexicographic order +alias lexid-inc="python -c \"import sys;build=(sys.argv[1] if len(sys.argv) ==2 else sys.exit('please provide number as input'));print((next if build[1] == (next:= str(int(build) + 1))[0] else f'{int(next[0])*11}{next[1:]}'))\"" diff --git a/home/private_dot_config/zsh/dot_zprofile b/home/private_dot_config/zsh/dot_zprofile index c979d7f..8f0648a 100644 --- a/home/private_dot_config/zsh/dot_zprofile +++ b/home/private_dot_config/zsh/dot_zprofile @@ -19,7 +19,7 @@ path=( $HOME/{,.local/}{,s}bin(N) $HOME/.extra/bin(N) - $HOME/{.go,.cargo,.pixi}/bin(N) + $HOME/{.go,.cargo,.pyenv}/bin(N) /opt/local/{,s}bin(N) /usr/{,local/}{,s}bin(N)