Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1845d649a | ||
|
|
e38696a0ac | ||
|
|
af11a50854 | ||
|
|
05ef68acbc | ||
|
|
78f88406cf | ||
|
|
feb468b517 | ||
|
|
66ae9b0de8 | ||
|
|
2e52d2a77c | ||
|
|
4c2e644db1 | ||
|
|
f0941e9ba2 | ||
|
|
6ba527ff98 |
@@ -12,10 +12,14 @@ alias gav='git add -v'
|
||||
|
||||
# branch
|
||||
alias gb='git branch'
|
||||
alias gbD='git branch -D'
|
||||
alias gba='git branch -a'
|
||||
alias gba='git branch --all'
|
||||
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 gdel='git branch -D'
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
about-alias 'Aliases for Terraform and Terragrunt'
|
||||
|
||||
alias tf='terraform'
|
||||
alias tfi='tf init'
|
||||
alias tfv='terraform validate'
|
||||
alias tfp='terraform plan'
|
||||
alias tfa='terraform apply'
|
||||
|
||||
@@ -76,6 +76,7 @@ completion/available/system.completion.bash
|
||||
completion/available/vault.completion.bash
|
||||
completion/available/vuejs.completion.bash
|
||||
completion/available/wpscan.completion.bash
|
||||
completion/available/yarn.completion.bash
|
||||
|
||||
# libraries
|
||||
lib/appearance.bash
|
||||
|
||||
@@ -50,7 +50,7 @@ function _bash-it-component-completion-callback-on-init-aliases() {
|
||||
fi
|
||||
|
||||
# skip aliases to pipes, boolean control structures and other command lists
|
||||
chars='\|\&\;\)\(\n\<\>'
|
||||
chars=$'|&;()<>\n'
|
||||
if [[ "${alias_defn}" =~ [$chars] ]]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
@@ -14,17 +14,17 @@ fi
|
||||
_bash_it_homebrew_check || return 0
|
||||
|
||||
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"
|
||||
|
||||
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"
|
||||
|
||||
elif [[ -f "$BASH_IT_HOMEBREW_PREFIX/completions/bash/brew" ]]; then
|
||||
# For the git-clone based installation, see here for more info:
|
||||
# https://github.com/Bash-it/bash-it/issues/1458
|
||||
# https://docs.brew.sh/Shell-Completion
|
||||
# shellcheck disable=1090
|
||||
# shellcheck disable=1090,1091
|
||||
source "$BASH_IT_HOMEBREW_PREFIX/completions/bash/brew"
|
||||
fi
|
||||
|
||||
5
completion/available/yarn.completion.bash
Normal file
5
completion/available/yarn.completion.bash
Normal file
@@ -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+.
|
||||
(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 "--append-to-config (-a): Keep existing config file and append bash-it templates at the end"
|
||||
echo "--overwrite-backup (-f): Overwrite existing backup"
|
||||
exit 0
|
||||
}
|
||||
|
||||
# enable a thing
|
||||
|
||||
@@ -59,16 +59,16 @@ function _command_duration() {
|
||||
command_duration=0
|
||||
fi
|
||||
|
||||
if ((command_duration > 0)); then
|
||||
if ((command_duration >= COMMAND_DURATION_MIN_SECONDS)); then
|
||||
minutes=$((command_duration / 60))
|
||||
seconds=$((command_duration % 60))
|
||||
fi
|
||||
|
||||
_dynamic_clock_icon "${command_duration}"
|
||||
if ((minutes > 0)); then
|
||||
printf "%s %s%dm %ds" "${COMMAND_DURATION_ICON:-}" "${COMMAND_DURATION_COLOR:-}" "$minutes" "$seconds"
|
||||
elif ((seconds >= COMMAND_DURATION_MIN_SECONDS)); then
|
||||
printf "%s %s%d.%01ds" "${COMMAND_DURATION_ICON:-}" "${COMMAND_DURATION_COLOR:-}" "$seconds" "$deciseconds"
|
||||
_dynamic_clock_icon "${command_duration}"
|
||||
if ((minutes > 0)); then
|
||||
printf "%s %s%dm %ds" "${COMMAND_DURATION_ICON:-}" "${COMMAND_DURATION_COLOR:-}" "$minutes" "$seconds"
|
||||
else
|
||||
printf "%s %s%d.%01ds" "${COMMAND_DURATION_ICON:-}" "${COMMAND_DURATION_COLOR:-}" "$seconds" "$deciseconds"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -8,13 +8,13 @@ function __() {
|
||||
function __make_ansi() {
|
||||
next=$1
|
||||
shift
|
||||
echo "\[\e[$("__$next" "$@")m\]"
|
||||
echo -e "\[\e[$("__$next" "$@")m\]"
|
||||
}
|
||||
|
||||
function __make_echo() {
|
||||
next=$1
|
||||
shift
|
||||
echo "\033[$("__$next" "$@")m"
|
||||
echo -e "\033[$("__$next" "$@")m"
|
||||
}
|
||||
|
||||
function __reset() {
|
||||
|
||||
@@ -182,7 +182,7 @@ prompt_segment() {
|
||||
# declare -p codes
|
||||
|
||||
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[@])"
|
||||
PR="$PR $(ansi intermediate[@])$SEGMENT_SEPARATOR"
|
||||
debug "post prompt " "$(ansi codes[@])"
|
||||
|
||||
21
themes/xora/xora.theme.bash
Normal file
21
themes/xora/xora.theme.bash
Normal file
@@ -0,0 +1,21 @@
|
||||
# shellcheck shell=bash
|
||||
# shellcheck disable=SC2034 # Expected behavior for themes.
|
||||
|
||||
function prompt_setter() {
|
||||
local scm_prompt_info ruby_version_prompt
|
||||
scm_prompt_info="$(scm_prompt_info)"
|
||||
ruby_version_prompt="$(ruby_version_prompt)"
|
||||
_save-and-reload-history 1 # Save history
|
||||
PS1="[${blue?}\u${reset_color?}@${green?}\H${reset_color?}] ${yellow?}\w${reset_color?}${scm_prompt_info}${ruby_version_prompt} ${reset_color?}"
|
||||
PS2='> '
|
||||
PS4='+ '
|
||||
}
|
||||
|
||||
safe_append_prompt_command prompt_setter
|
||||
|
||||
SCM_THEME_PROMPT_DIRTY=" ✗"
|
||||
SCM_THEME_PROMPT_CLEAN=" ✓"
|
||||
SCM_THEME_PROMPT_PREFIX=" ("
|
||||
SCM_THEME_PROMPT_SUFFIX=")"
|
||||
RVM_THEME_PROMPT_PREFIX=" ("
|
||||
RVM_THEME_PROMPT_SUFFIX=")"
|
||||
1208
vendor/github.com/dsifford/yarn-completion/yarn
generated
vendored
Normal file
1208
vendor/github.com/dsifford/yarn-completion/yarn
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user