From d1742a1ff9761d0656d79098894c89c120cffbf2 Mon Sep 17 00:00:00 2001 From: Bruno21 Date: Tue, 17 Aug 2021 15:20:14 +0200 Subject: [PATCH] add pipx --- .gitignore | 4 +++- .zprofile | 3 +++ .zshrc | 22 ++++++++++++++++++---- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 2880fda..894a7fe 100755 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,6 @@ !.sh_aliases !.nanorc !.gnupg -!.ssh \ No newline at end of file +!.ssh.cfg +.config/.cfg +.cfg diff --git a/.zprofile b/.zprofile index 6b27a6c..3e7de08 100644 --- a/.zprofile +++ b/.zprofile @@ -1 +1,4 @@ eval "$(/opt/homebrew/bin/brew shellenv)" + +# Created by `pipx` on 2021-08-17 08:22:20 +export PATH="$PATH:/Users/bruno/.local/bin" diff --git a/.zshrc b/.zshrc index 7f29df1..3a04bf6 100644 --- a/.zshrc +++ b/.zshrc @@ -37,7 +37,6 @@ fif() { # --------------------------------------- # keg-only - export PATH="/opt/homebrew/opt/ssh-copy-id/bin:$PATH" export PATH="/opt/homebrew/opt/unzip/bin:$PATH" export PATH="/opt/homebrew/opt/ruby/bin:$PATH" @@ -46,6 +45,9 @@ PATH="/opt/homebrew/opt/findutils/libexec/gnubin:$PATH PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH PATH="/opt/homebrew/opt/grep/libexec/gnubin:$PATH" +# poetry +export PATH="/Users/bruno/Library/Python/3.9/bin:$PATH" + coreutils=false if [ -d '/opt/homebrew/opt/coreutils/libexec/gnubin' ]; then #PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH" @@ -148,6 +150,15 @@ fh() { # 6. Options # --------------------------------------- +# For poetry: https://github.com/python-poetry/poetry#enable-tab-completion-for-bash-fish-or-zsh +#fpath+=~/.zfunc +# additional completions +#autoload -U +X compinit && compinit + +#pipx +autoload -U bashcompinit && bashcompinit +eval "$(register-python-argcomplete pipx)" + setopt auto_cd # cd by typing directory name if it's not a command (pas besoin de taper cd, juste le nom du dossier) setopt correct_all # autocorrect commands setopt auto_list # automatically list choices on ambiguous completion @@ -533,8 +544,8 @@ alias backpi='sudo rsync -av --exclude ".*/" pi@192.168.1.100:/home/pi/ ~/RPi-ba alias up_kymsu='cd /Users/bruno/Documents/Scripts/kymsu2/ ; ./install.sh' -alias bashTools='/$HOME/Documents/Scripts/bash/bash_tools.sh' -alias zshTools='/$HOME/Documents/Scripts/bash/zsh_tools.sh' +alias bashTools='$HOME/Documents/Scripts/bash/bash_tools.sh' +alias zshTools='$HOME/Documents/Scripts/bash/zsh_tools.sh' # Convert contents of clipboard to plain text. alias txt='pbpaste | textutil -convert txt -stdin -stdout -encoding 30 | pbcopy' @@ -567,7 +578,7 @@ alias mt='multitail -F /usr/local/etc/multitail.conf' alias dbpush='dotbare push -u mbv master' alias dbadd='dotbare add -f $1' alias dbcomm='dotbare commit -am $1' -alias dback='dotbare fbackup' +alias dbback='dotbare fbackup' # --------------------------------------- @@ -704,3 +715,6 @@ export GPG_ID=bruno@clicclac.info # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh + +# Created by `pipx` on 2021-08-17 08:22:20 +export PATH="$PATH:/Users/bruno/.local/bin"