Skip to content

Commit 980593a

Browse files
authored
Merge branch 'master' into feature/url-plugin
2 parents b5f3108 + 2ef5d48 commit 980593a

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

clean_files.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ completion/available/dmidecode.completion.bash
4646
completion/available/docker-machine.completion.bash
4747
completion/available/docker.completion.bash
4848
completion/available/dotnet.completion.bash
49+
completion/available/flutter.completion.bash
4950
completion/available/gcloud.completion.bash
5051
completion/available/gem.completion.bash
5152
completion/available/git.completion.bash
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#!/usr/bin/bash
1+
# shellcheck shell=bash
22

33
if _command_exists flutter; then
4-
eval "$(flutter bash-completion)"
4+
eval "$(flutter bash-completion)"
55
fi

plugins/available/dirs.plugin.bash

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,15 @@ function dirs-help() {
6363
if [[ -f "${BASH_IT_DIRS_BKS?}" ]]; then
6464
# shellcheck disable=SC1090
6565
source "${BASH_IT_DIRS_BKS?}"
66-
elif [[ -f ~/.dirs ]]; then
67-
mv -vn ~/.dirs "${BASH_IT_DIRS_BKS?}"
68-
# shellcheck disable=SC1090
69-
source "${BASH_IT_DIRS_BKS?}"
7066
else
71-
touch "${BASH_IT_DIRS_BKS?}"
67+
mkdir -p "${BASH_IT_DIRS_BKS%/*}"
68+
if [[ -f ~/.dirs ]]; then
69+
mv -vn ~/.dirs "${BASH_IT_DIRS_BKS?}"
70+
# shellcheck disable=SC1090
71+
source "${BASH_IT_DIRS_BKS?}"
72+
else
73+
touch "${BASH_IT_DIRS_BKS?}"
74+
fi
7275
fi
7376

7477
alias L='cat "${BASH_IT_DIRS_BKS?}"'

0 commit comments

Comments
 (0)