dotfiles

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

commit 49d36cb23d5a537b0e2eefd5d76864542f1fbe29
parent 6b77485dd54d50e2972f683d4e96a1c2e02b1999
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Mon, 22 Jun 2020 12:04:38 +0200

shell: make vimq work with spaces/quotes

Former-commit-id: a215ce912657480411e555490d29b69cce110e55
Diffstat:
Mshell/functions | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell/functions b/shell/functions @@ -5,7 +5,7 @@ mkcd() { mkdir -p -- "$1" && cd -P -- "$1" || return; } # make d procinfo() { pgrep -f "$1"; } # get info about a process (by name) rmempty() { find "${1-.}" -type d -empty -depth -delete; } # remove empty directories hr() { for ((i=0; i<$(tput cols); i++)); do echo -n "#"; done; echo; } # insert a <hr> in the terminal -vimq() { vim -q <($(fc -nl -1)); } # load results of last command (often ag) in vim quickfix +vimq() { vim -q <(eval $(fc -nl -1)); } # load results of last command (often ag) in vim quickfix. eval necessary to handle escaped quotes. 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; }