From 3d363c813302146165f7d42b01a82cf3ecc37863 Mon Sep 17 00:00:00 2001 From: Alex Manning Date: Fri, 7 Jan 2022 19:59:23 +0000 Subject: [PATCH 1/2] Fix vimrc.simple --- home/.vimrc.simple | 4 ++-- private | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/home/.vimrc.simple b/home/.vimrc.simple index b1dbe43..f25eef8 100644 --- a/home/.vimrc.simple +++ b/home/.vimrc.simple @@ -2,5 +2,5 @@ if !exists("g:my_environ_dir") let g:my_environ_dir = expand('~/.alex-environ') endif -exe "source " . g:my_environ_dir . "/home/.vimrc.d/base" -exe "source " . g:my_environ_dir . "/home/.vimrc.d/filetypes" +exe "source " . g:my_environ_dir . "/home/.vimrc.d/base.vim" +exe "source " . g:my_environ_dir . "/home/.vimrc.d/filetypes.vim" diff --git a/private b/private index 0cbd255..9524ea5 160000 --- a/private +++ b/private @@ -1 +1 @@ -Subproject commit 0cbd255efc13b917dcc904495aca0ea80735d275 +Subproject commit 9524ea509b53a757b60c1a7850da64a3537c43dc From 1ea82c0e0ddf6c73c04cc4dfeb6985d738a675cf Mon Sep 17 00:00:00 2001 From: Alex Manning Date: Tue, 11 Jan 2022 10:25:43 +0000 Subject: [PATCH 2/2] Steal make bash completion fom fedora --- home/.bash_profile.d/bash_completions.d/make | 170 +++++++++++++++++++ 1 file changed, 170 insertions(+) create mode 100644 home/.bash_profile.d/bash_completions.d/make diff --git a/home/.bash_profile.d/bash_completions.d/make b/home/.bash_profile.d/bash_completions.d/make new file mode 100644 index 0000000..96517c2 --- /dev/null +++ b/home/.bash_profile.d/bash_completions.d/make @@ -0,0 +1,170 @@ +# bash completion for GNU make -*- shell-script -*- + +_make_target_extract_script() +{ + local mode="$1" + shift + + local prefix="$1" + local prefix_pat=$(command sed 's/[][\,.*^$(){}?+|/]/\\&/g' <<<"$prefix") + local basename=${prefix##*/} + local dirname_len=$((${#prefix} - ${#basename})) + + if [[ $mode == -d ]]; then + # display mode, only output current path component to the next slash + local output="\2" + else + # completion mode, output full path to the next slash + local output="\1\2" + fi + + cat <