From 27678f1788514b73584f7ad3948aab701dd9ec79 Mon Sep 17 00:00:00 2001 From: freezed <git-expect-noreply@freezed.me> Date: Sun, 27 Nov 2022 00:30:10 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20Update=20git=20&=20zsh=20tooling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/user_cfg/files/dotfiles/gitconfig | 3 +++ tasks/user_cfg/files/dotfiles/zshrc | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tasks/user_cfg/files/dotfiles/gitconfig b/tasks/user_cfg/files/dotfiles/gitconfig index 5bf507e..77b753d 100644 --- a/tasks/user_cfg/files/dotfiles/gitconfig +++ b/tasks/user_cfg/files/dotfiles/gitconfig @@ -38,6 +38,9 @@ [checkout] defaultRemote=origin +[url "ssh://git@git.afpy.org/"] + pushInsteadOf = https://git.afpy.org/ + [url "ssh://git@github.com/"] pushInsteadOf = https://github.com/ diff --git a/tasks/user_cfg/files/dotfiles/zshrc b/tasks/user_cfg/files/dotfiles/zshrc index 9236488..3b71aaf 100644 --- a/tasks/user_cfg/files/dotfiles/zshrc +++ b/tasks/user_cfg/files/dotfiles/zshrc @@ -39,7 +39,6 @@ alias gps='for proj in $(find ~/git -mindepth 1 -maxdepth 1 -type d -printf "%p\ alias gpu='for proj in $(find ~/git -mindepth 1 -maxdepth 1 -type d -printf "%p\n");do git -C ${proj} fetch --prune --quiet || echo "ERROR fetching git repo: ${proj#${HOME}/git/}";done' alias p1='ping -c 1 ' alias sudo='sudo ' -alias ttoday='cat ~/.timed|grep "$(date +%d) Oct 2021" | timed parse' alias vact='source ~/.venvs/$(pwd | cut -d"/" -f5)/bin/activate' alias vc10='~/pylocal/bin/python3.10 -m venv --clear --copies ~/.venvs/$(pwd | cut -d "/" -f5)' alias vc='python3 -m venv --clear --copies ~/.venvs/$(pwd | cut -d "/" -f5)' @@ -48,7 +47,7 @@ alias vdestroy='VENV_PATH="${HOME}/.venvs/$(pwd | cut -d"/" -f5)/" && echo ${VEN # Timed alias tart='timed start _job_;vi ~/.timed +' alias tsto='timed stop;ttod' -alias ttod='cat ~/.timed | grep "$(date +%d) Jan 2022" | timed parse' +alias ttod='cat ~/.timed | grep "$(date +%d) Dec 2022" | timed parse' # ######################### # @@ -193,7 +192,7 @@ unsetopt hup # ########################################### # setopt EXTENDED_HISTORY -export HISTTIMEFORMAT="[%F %T] " +#export HISTTIMEFORMAT="[%F %T] " # Nombre d'entrées dans l'historique export HISTORY=50000 -- GitLab