dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit fd0cbcf3e114708f39ce89afd1973946e459ee5d
parent 79dff962a65a1359327ed6a77a527aaf7ec01b04
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue,  3 Nov 2020 11:43:59 +0100

zp: a function to print the result from `z`

Former-commit-id: a14094dde8d421f05f137f9a03273e459682eec3
Diffstat:
Mshell/functions | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/shell/functions b/shell/functions @@ -9,6 +9,7 @@ vimq() { vim -q <(eval "$(fc -nl -1)"); } # loa gpip(){ PIP_REQUIRE_VIRTUALENV="" pip "$@"; } # Access global pip while using virtualenvs nls() { expr `ls -l | wc -l | xargs echo` - 1; } # Count the number of files in the directory reload-completions() { rm ~/.zcompdump && compinit; } +zp() { z -l "$@" | awk -F' ' 'END {printf $2}'; } # Get the result of a "z" comman reload() { local START_TIME=$SECONDS if [[ $SHELL = *"zsh"* ]]; then