Compare commits
10 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
e38696a0ac | |
|
|
af11a50854 | |
|
|
05ef68acbc | |
|
|
78f88406cf | |
|
|
feb468b517 | |
|
|
66ae9b0de8 | |
|
|
2e52d2a77c | |
|
|
4c2e644db1 | |
|
|
f0941e9ba2 | |
|
|
6ba527ff98 |
|
|
@ -12,10 +12,14 @@ alias gav='git add -v'
|
||||||
|
|
||||||
# branch
|
# branch
|
||||||
alias gb='git branch'
|
alias gb='git branch'
|
||||||
alias gbD='git branch -D'
|
alias gba='git branch --all'
|
||||||
alias gba='git branch -a'
|
|
||||||
alias gbd='git branch -d'
|
alias gbd='git branch -d'
|
||||||
alias gbm='git branch -m'
|
alias gbD='git branch -D'
|
||||||
|
alias gbl='git branch --list'
|
||||||
|
alias gbla='git branch --list --all'
|
||||||
|
alias gblr='git branch --list --remotes'
|
||||||
|
alias gbm='git branch --move'
|
||||||
|
alias gbr='git branch --remotes'
|
||||||
alias gbt='git branch --track'
|
alias gbt='git branch --track'
|
||||||
alias gdel='git branch -D'
|
alias gdel='git branch -D'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
about-alias 'Aliases for Terraform and Terragrunt'
|
about-alias 'Aliases for Terraform and Terragrunt'
|
||||||
|
|
||||||
alias tf='terraform'
|
alias tf='terraform'
|
||||||
|
alias tfi='tf init'
|
||||||
alias tfv='terraform validate'
|
alias tfv='terraform validate'
|
||||||
alias tfp='terraform plan'
|
alias tfp='terraform plan'
|
||||||
alias tfa='terraform apply'
|
alias tfa='terraform apply'
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ completion/available/system.completion.bash
|
||||||
completion/available/vault.completion.bash
|
completion/available/vault.completion.bash
|
||||||
completion/available/vuejs.completion.bash
|
completion/available/vuejs.completion.bash
|
||||||
completion/available/wpscan.completion.bash
|
completion/available/wpscan.completion.bash
|
||||||
|
completion/available/yarn.completion.bash
|
||||||
|
|
||||||
# libraries
|
# libraries
|
||||||
lib/appearance.bash
|
lib/appearance.bash
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ function _bash-it-component-completion-callback-on-init-aliases() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# skip aliases to pipes, boolean control structures and other command lists
|
# skip aliases to pipes, boolean control structures and other command lists
|
||||||
chars='\|\&\;\)\(\n\<\>'
|
chars=$'|&;()<>\n'
|
||||||
if [[ "${alias_defn}" =~ [$chars] ]]; then
|
if [[ "${alias_defn}" =~ [$chars] ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -14,17 +14,17 @@ fi
|
||||||
_bash_it_homebrew_check || return 0
|
_bash_it_homebrew_check || return 0
|
||||||
|
|
||||||
if [[ -r "$BASH_IT_HOMEBREW_PREFIX/etc/bash_completion.d/brew" ]]; then
|
if [[ -r "$BASH_IT_HOMEBREW_PREFIX/etc/bash_completion.d/brew" ]]; then
|
||||||
# shellcheck disable=1090
|
# shellcheck disable=1090,1091
|
||||||
source "$BASH_IT_HOMEBREW_PREFIX/etc/bash_completion.d/brew"
|
source "$BASH_IT_HOMEBREW_PREFIX/etc/bash_completion.d/brew"
|
||||||
|
|
||||||
elif [[ -r "$BASH_IT_HOMEBREW_PREFIX/Library/Contributions/brew_bash_completion.sh" ]]; then
|
elif [[ -r "$BASH_IT_HOMEBREW_PREFIX/Library/Contributions/brew_bash_completion.sh" ]]; then
|
||||||
# shellcheck disable=1090
|
# shellcheck disable=1090,1091
|
||||||
source "$BASH_IT_HOMEBREW_PREFIX/Library/Contributions/brew_bash_completion.sh"
|
source "$BASH_IT_HOMEBREW_PREFIX/Library/Contributions/brew_bash_completion.sh"
|
||||||
|
|
||||||
elif [[ -f "$BASH_IT_HOMEBREW_PREFIX/completions/bash/brew" ]]; then
|
elif [[ -f "$BASH_IT_HOMEBREW_PREFIX/completions/bash/brew" ]]; then
|
||||||
# For the git-clone based installation, see here for more info:
|
# For the git-clone based installation, see here for more info:
|
||||||
# https://github.com/Bash-it/bash-it/issues/1458
|
# https://github.com/Bash-it/bash-it/issues/1458
|
||||||
# https://docs.brew.sh/Shell-Completion
|
# https://docs.brew.sh/Shell-Completion
|
||||||
# shellcheck disable=1090
|
# shellcheck disable=1090,1091
|
||||||
source "$BASH_IT_HOMEBREW_PREFIX/completions/bash/brew"
|
source "$BASH_IT_HOMEBREW_PREFIX/completions/bash/brew"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
# shellcheck shell=bash
|
||||||
|
about-completion "yarn cli completions"
|
||||||
|
|
||||||
|
# shellcheck disable=SC1090 source=../../vendor/github.com/dsifford/yarn-completion/yarn
|
||||||
|
source "${BASH_IT}/vendor/github.com/dsifford/yarn-completion/yarn"
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
[](https://web.libera.chat/?channel=#bash-it)
|
|
||||||
|
|
||||||
**Bash-it** is a collection of community Bash commands and scripts for Bash 3.2+.
|
**Bash-it** is a collection of community Bash commands and scripts for Bash 3.2+.
|
||||||
(And a shameless ripoff of [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) :smiley:)
|
(And a shameless ripoff of [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) :smiley:)
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ function _bash-it_show_usage() {
|
||||||
echo "--no-modify-config (-n): Do not modify existing config file"
|
echo "--no-modify-config (-n): Do not modify existing config file"
|
||||||
echo "--append-to-config (-a): Keep existing config file and append bash-it templates at the end"
|
echo "--append-to-config (-a): Keep existing config file and append bash-it templates at the end"
|
||||||
echo "--overwrite-backup (-f): Overwrite existing backup"
|
echo "--overwrite-backup (-f): Overwrite existing backup"
|
||||||
exit 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# enable a thing
|
# enable a thing
|
||||||
|
|
|
||||||
|
|
@ -59,16 +59,16 @@ function _command_duration() {
|
||||||
command_duration=0
|
command_duration=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ((command_duration > 0)); then
|
if ((command_duration >= COMMAND_DURATION_MIN_SECONDS)); then
|
||||||
minutes=$((command_duration / 60))
|
minutes=$((command_duration / 60))
|
||||||
seconds=$((command_duration % 60))
|
seconds=$((command_duration % 60))
|
||||||
fi
|
|
||||||
|
|
||||||
_dynamic_clock_icon "${command_duration}"
|
_dynamic_clock_icon "${command_duration}"
|
||||||
if ((minutes > 0)); then
|
if ((minutes > 0)); then
|
||||||
printf "%s %s%dm %ds" "${COMMAND_DURATION_ICON:-}" "${COMMAND_DURATION_COLOR:-}" "$minutes" "$seconds"
|
printf "%s %s%dm %ds" "${COMMAND_DURATION_ICON:-}" "${COMMAND_DURATION_COLOR:-}" "$minutes" "$seconds"
|
||||||
elif ((seconds >= COMMAND_DURATION_MIN_SECONDS)); then
|
else
|
||||||
printf "%s %s%d.%01ds" "${COMMAND_DURATION_ICON:-}" "${COMMAND_DURATION_COLOR:-}" "$seconds" "$deciseconds"
|
printf "%s %s%d.%01ds" "${COMMAND_DURATION_ICON:-}" "${COMMAND_DURATION_COLOR:-}" "$seconds" "$deciseconds"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,13 +8,13 @@ function __() {
|
||||||
function __make_ansi() {
|
function __make_ansi() {
|
||||||
next=$1
|
next=$1
|
||||||
shift
|
shift
|
||||||
echo "\[\e[$("__$next" "$@")m\]"
|
echo -e "\[\e[$("__$next" "$@")m\]"
|
||||||
}
|
}
|
||||||
|
|
||||||
function __make_echo() {
|
function __make_echo() {
|
||||||
next=$1
|
next=$1
|
||||||
shift
|
shift
|
||||||
echo "\033[$("__$next" "$@")m"
|
echo -e "\033[$("__$next" "$@")m"
|
||||||
}
|
}
|
||||||
|
|
||||||
function __reset() {
|
function __reset() {
|
||||||
|
|
|
||||||
|
|
@ -182,7 +182,7 @@ prompt_segment() {
|
||||||
# declare -p codes
|
# declare -p codes
|
||||||
|
|
||||||
if [[ $CURRENT_BG != NONE && $1 != "$CURRENT_BG" ]]; then
|
if [[ $CURRENT_BG != NONE && $1 != "$CURRENT_BG" ]]; then
|
||||||
declare -a intermediate=("$(fg_color $CURRENT_BG)" "$(bg_color "$1")")
|
declare -a intermediate=("$(fg_color "$CURRENT_BG")" "$(bg_color "$1")")
|
||||||
debug "pre prompt " "$(ansi intermediate[@])"
|
debug "pre prompt " "$(ansi intermediate[@])"
|
||||||
PR="$PR $(ansi intermediate[@])$SEGMENT_SEPARATOR"
|
PR="$PR $(ansi intermediate[@])$SEGMENT_SEPARATOR"
|
||||||
debug "post prompt " "$(ansi codes[@])"
|
debug "post prompt " "$(ansi codes[@])"
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue