dotfiles

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

commit 4cb6da88f51051fcbf424d0bfd0dd8ce8d321a9e
parent 3e1b1ac01f94bf30f864b8d77100b46f3108360e
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Fri, 11 Jan 2019 16:59:14 +0100

Load results of previous command in vim quickfix

This is best used with programs like ag.


Former-commit-id: da19af35f5f9c39660b87b790f0b2b2cb4f91ff5
Diffstat:
Mshell/commonprofile | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shell/commonprofile b/shell/commonprofile @@ -117,11 +117,11 @@ mark() { mdvl "$1" | less; } cd() { builtin cd -P "$@" || return; ls; } # List contents after cding mkcd() { mkdir -p -- "$1" && cd -P -- "$1" || return; } # Make dir and cd at the same time procinfo() { ps aux | grep "$1"; } # Get info about a process (by name) -procinfo2() { pgrep -f "$1"; } rmempty() { find "${1-.}" -type d -empty -depth -delete; } # Remove empty directories todos() { if [ -z "$1" ]; then 1="."; fi; grep -rnw "$1" -e "TODO"; } # Find TODO comments find_in_files() { grep -rnw "$1" -e "$2"; } # Search for text in files -hr() { for ((i=0; i<COLUMNS; i++)); do echo -n "#"; done; echo; } +hr() { for ((i=0; i<COLUMNS; i++)); do echo -n "#"; done; echo; } # Insert a <hr> in the terminal +vimq() { vim -v -q <($(fc -nl -1)); } # Load results of last command (often ag) in vim quickfix # Pip3 upgrade packages pip3_upgrade() { pip3 list --outdated | cut -d ' ' -f1 | xargs -n1 pip3 install -U; }