From d7fb6b3235bfceeb36d4657631c6c3155cdfd4ff Mon Sep 17 00:00:00 2001 From: Gurkirat Singh Date: Tue, 15 Mar 2022 07:52:43 +0530 Subject: [PATCH 1/6] improve (lint): add completion/available/flutter.completion.bash entry --- clean_files.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/clean_files.txt b/clean_files.txt index de0f6c1e..192fefa6 100644 --- a/clean_files.txt +++ b/clean_files.txt @@ -46,6 +46,7 @@ completion/available/dmidecode.completion.bash completion/available/docker-machine.completion.bash completion/available/docker.completion.bash completion/available/dotnet.completion.bash +completion/available/flutter.completion.bash completion/available/gcloud.completion.bash completion/available/gem.completion.bash completion/available/git.completion.bash From e11576f260903ee2041e910b535f674dbe5c86a4 Mon Sep 17 00:00:00 2001 From: Gurkirat Singh Date: Tue, 15 Mar 2022 07:53:11 +0530 Subject: [PATCH 2/6] fix (completion): shfmt format flutter.completion.bash --- completion/available/flutter.completion.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/completion/available/flutter.completion.bash b/completion/available/flutter.completion.bash index 62befc82..7dde5a07 100644 --- a/completion/available/flutter.completion.bash +++ b/completion/available/flutter.completion.bash @@ -1,5 +1,5 @@ -#!/usr/bin/bash +# shellcheck shell=bash if _command_exists flutter; then - eval "$(flutter bash-completion)" + eval "$(flutter bash-completion)" fi From c0dc83edfc4bfca914c8da3eda51f17e169e8cdf Mon Sep 17 00:00:00 2001 From: David Farrell Date: Mon, 9 May 2022 13:08:52 -0700 Subject: [PATCH 3/6] plugin(dirs): Create backup file parent directory --- plugins/available/dirs.plugin.bash | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/plugins/available/dirs.plugin.bash b/plugins/available/dirs.plugin.bash index 34468fa0..55d2e88a 100644 --- a/plugins/available/dirs.plugin.bash +++ b/plugins/available/dirs.plugin.bash @@ -63,12 +63,15 @@ function dirs-help() { if [[ -f "${BASH_IT_DIRS_BKS?}" ]]; then # shellcheck disable=SC1090 source "${BASH_IT_DIRS_BKS?}" -elif [[ -f ~/.dirs ]]; then - mv -vn ~/.dirs "${BASH_IT_DIRS_BKS?}" - # shellcheck disable=SC1090 - source "${BASH_IT_DIRS_BKS?}" else - touch "${BASH_IT_DIRS_BKS?}" + mkdir -p "${BASH_IT_DIRS_BKS%/*}" + if [[ -f ~/.dirs ]]; then + mv -vn ~/.dirs "${BASH_IT_DIRS_BKS?}" + # shellcheck disable=SC1090 + source "${BASH_IT_DIRS_BKS?}" + else + touch "${BASH_IT_DIRS_BKS?}" + fi fi alias L='cat "${BASH_IT_DIRS_BKS?}"' From 129340d24d8c75d1eb3e801487da35d56bb75ac2 Mon Sep 17 00:00:00 2001 From: Thomas Merz Date: Mon, 18 Jul 2022 14:30:59 +0200 Subject: [PATCH 4/6] =?UTF-8?q?Issue=202151=20=F0=9F=9B=82=20do=20not=20gi?= =?UTF-8?q?ve=20users=20a=20root=20shell=20by=20executing=20arbitrary=20sh?= =?UTF-8?q?ell=20commands=20by=20'vim'=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20also=20by=20removing=20'sudo'=20aliases=20because=20ba?= =?UTF-8?q?sh-it=20should=20not=20be=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20the=20business=20of=20mucking=20about=20with=20sudo=20?= =?UTF-8?q?at=20all?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aliases/available/general.aliases.bash | 4 ---- 1 file changed, 4 deletions(-) diff --git a/aliases/available/general.aliases.bash b/aliases/available/general.aliases.bash index b4934489..2511aab8 100644 --- a/aliases/available/general.aliases.bash +++ b/aliases/available/general.aliases.bash @@ -71,10 +71,6 @@ alias rd='rmdir' # Shorten extract alias xt='extract' -# sudo editors -alias svim='sudo ${VISUAL:-vim}' -alias snano='sudo nano' - # Display whatever file is regular file or folder function catt() { for i in "$@"; do From 407f2f5b5f4a2fa9e7361a4385b02b64e29cef13 Mon Sep 17 00:00:00 2001 From: Jake Boeckerman Date: Fri, 12 Aug 2022 11:02:56 -0600 Subject: [PATCH 5/6] Update github runner images Github deprecated and will remove two runner images macos-10.15 will be removed on 2022-08-30 macos-12 is available https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22/ ubuntu-18.04 will be removed on 2022-12-01 ubuntu-22.04 is available https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/ --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0eee145c..1d1c0eca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: bats-test: strategy: matrix: - os: [ubuntu-20.04, ubuntu-18.04, macos-10.15, macos-11] + os: [ubuntu-20.04, ubuntu-22.04, macos-12, macos-11] runs-on: ${{ matrix.os }} From e5e7785c9697d2808459f9d6d7a6d8652db74d88 Mon Sep 17 00:00:00 2001 From: Brian Phillips <28457+brianphillips@users.noreply.github.com> Date: Tue, 30 Aug 2022 13:21:03 -0500 Subject: [PATCH 6/6] Update variable name to match projects.plugin.bash The projects plugin was changed to reference `BASH_IT_PROJECT_PATHS` but the completion was still using `PROJECT_PATHS` --- completion/available/projects.completion.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/completion/available/projects.completion.bash b/completion/available/projects.completion.bash index 90735ee1..df4f5754 100644 --- a/completion/available/projects.completion.bash +++ b/completion/available/projects.completion.bash @@ -7,7 +7,7 @@ _is_function _rl_enabled || _pj() { _is_function _init_completion || return _is_function _rl_enabled || return - [ -n "$PROJECT_PATHS" ] || return + [ -n "$BASH_IT_PROJECT_PATHS" ] || return shift [ "$1" == "open" ] && shift @@ -21,7 +21,7 @@ _pj() { local -r mark_dirs=$(_rl_enabled mark-directories && echo y) local -r mark_symdirs=$(_rl_enabled mark-symlinked-directories && echo y) - for i in ${PROJECT_PATHS//:/$'\n'}; do + for i in ${BASH_IT_PROJECT_PATHS//:/$'\n'}; do # create an array of matched subdirs k="${#COMPREPLY[@]}" for j in $( compgen -d $i/$cur ); do