Skip to content

Commit f87c93e

Browse files
committed
Merge branch 'master' into add-bashcov-report
* master: (40 commits) Add aliases for git worktree Tofu completion rewrite have pre-commit ignore the /vendor, they should be immutable. Fix: __powerline_last_status_prompt to handle unset argument safely remove superfluous function and pick better var names for readability Update base.theme.bash Update base.theme.bash Update base.theme.bash Update base.theme.bash Fix for 2323 issue Apply fixes Add `.git-blame-ignore-revs` Clean themes A-L Update powerline-multiline.base.bash Fix a couple bugs introduced by last commit Fix bad merge Update plugins/available/extract.plugin.bash important syntax correction from the owenr of ble.sh only the correct FZF integration loads, sepending on whether the blesh plugin is enabled as well. readonly HIST* variables is a bit extreme and clashes with ble.sh and other tools. ...
2 parents efa707c + 338ace2 commit f87c93e

75 files changed

Lines changed: 667 additions & 423 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.git-blame-ignore-revs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ignore shfmt related commits
2+
003b0ce802c10ab6e161d7ba5a7d9b6722312cc5
3+
7c2c2a5525557cbfee98e73de921fd7f7e6811a1
4+
d37505b636ca7bc95301d8daaf9c58a3186ce57a
5+
d7695d5456b980190b6d1c4a4715b13d1b63c332

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
---
44
# fail_fast: true
55
minimum_pre_commit_version: 1.18.1
6-
exclude: "docs/_build/"
6+
exclude: "docs/_build/|vendor/"
77
repos:
88
- repo: https://github.com/pre-commit/pre-commit-hooks
99
rev: v2.3.0
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# shellcheck shell=bash
2+
about-alias 'Shortcuts for directory commands: ls, cd, &c.'
3+
4+
if command ls --color -d . &> /dev/null; then
5+
alias ls='ls --color=auto'
6+
# BSD `ls` doesn't need an argument (`-G`) when `$CLICOLOR` is set.
7+
fi
8+
9+
# List directory contents
10+
alias sl=ls
11+
alias la='ls -AF' # Compact view, show hidden
12+
alias ll='ls -Al'
13+
alias l='ls -A'
14+
alias l1='ls -1'
15+
alias lf='ls -F'
16+
17+
# Change directory
18+
alias ..='cd ..' # Go up one directory
19+
alias cd..='cd ..' # Common misspelling for going up one directory
20+
alias ...='cd ../..' # Go up two directories
21+
alias ....='cd ../../..' # Go up three directories
22+
alias -- -='cd -' # Go back
23+
24+
# Create or remove directory
25+
alias md='mkdir -p'
26+
alias rd='rmdir'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# shellcheck shell=bash
2+
about-alias 'shortcuts for editing'
3+
4+
alias edit='${EDITOR:-${ALTERNATE_EDITOR:-nano}}'
5+
alias e='edit'
6+
7+
# sudo editors
8+
alias svim='sudo ${VISUAL:-vim}'
9+
alias snano='sudo ${ALTERNATE_EDITOR:-nano}'
10+
alias sedit='sudo ${EDITOR:-${ALTERNATE_EDITOR:-nano}}'
11+
12+
# Shortcuts to edit startup files
13+
alias vbrc='${VISUAL:-vim} ~/.bashrc'
14+
alias vbpf='${VISUAL:-vim} ~/.bash_profile'

aliases/available/general.aliases.bash

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
11
# shellcheck shell=bash
2+
# shellcheck source-path=SCRIPTDIR
23
about-alias 'general aliases'
34

4-
if command ls --color -d . &> /dev/null; then
5-
alias ls='ls --color=auto'
6-
# BSD `ls` doesn't need an argument (`-G`) when `$CLICOLOR` is set.
7-
fi
8-
9-
# List directory contents
10-
alias sl=ls
11-
alias la='ls -AF' # Compact view, show hidden
12-
alias ll='ls -al'
13-
alias l='ls -a'
14-
alias l1='ls -1'
15-
alias lf='ls -F'
16-
175
alias _='sudo'
186

19-
# Shortcuts to edit startup files
20-
alias vbrc='${VISUAL:-vim} ~/.bashrc'
21-
alias vbpf='${VISUAL:-vim} ~/.bash_profile'
22-
237
# colored grep
248
# Need to check an existing file for a pattern that will be found to ensure
259
# that the check works when on an OS that supports the color option
@@ -39,16 +23,17 @@ alias pager='${PAGER:=less}'
3923

4024
alias q='exit'
4125

42-
alias irc='${IRC_CLIENT:=irc}'
26+
alias irc='${IRC_CLIENT:-irc}'
4327

4428
# Language aliases
4529
alias rb='ruby'
4630
alias py='python'
4731
alias ipy='ipython'
4832

4933
# Pianobar can be found here: http://github.com/PromyLOPh/pianobar/
50-
51-
alias piano='pianobar'
34+
if _command_exists pianobar; then
35+
alias piano='pianobar'
36+
fi
5237

5338
alias ..='cd ..' # Go up one directory
5439
alias cd..='cd ..' # Common misspelling for going up one directory
@@ -92,5 +77,6 @@ function catt() {
9277
# aliases and enable just the ones for Bash-it explicitly:
9378
# bash-it disable alias general
9479
# bash-it enable alias bash-it
95-
# shellcheck source-path=SCRIPTDIR
9680
source "$BASH_IT/aliases/available/bash-it.aliases.bash"
81+
source "$BASH_IT/aliases/available/directory.aliases.bash"
82+
source "$BASH_IT/aliases/available/editor.aliases.bash"

aliases/available/git.aliases.bash

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@ alias gta='git tag -a'
212212
alias gtd='git tag -d'
213213
alias gtl='git tag -l'
214214

215+
#worktree
216+
alias gw='git worktree'
217+
alias gwa='git worktree add'
218+
alias gwl='git worktree list'
219+
alias gwr='git worktree remove'
220+
215221
case $OSTYPE in
216222
darwin*)
217223
alias gtls="git tag -l | gsort -V"

aliases/available/vim.aliases.bash

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# shellcheck shell=bash
22
about-alias 'vim abbreviations'
33

4-
_command_exists vim || return
4+
alias v='${VISUAL:-vim}'
55

6-
alias v='vim'
6+
if ! _command_exists vim; then
7+
_log_warning "Without 'vim', these aliases just aren't that useful..."
8+
fi
79
# open the vim help in fullscreen incorporated from
810
# https://stackoverflow.com/a/4687513
911
alias vimh='vim -c ":h | only"'

clean_files.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ themes/atomic
4141
themes/axin
4242
themes/bakke
4343
themes/barbuk
44-
themes/base.theme.bash
4544
themes/binaryanomaly
4645
themes/bira
4746
themes/bobby
@@ -53,19 +52,28 @@ themes/clean
5352
themes/codeword
5453
themes/cooperkid
5554
themes/cupcake
55+
themes/demula
56+
themes/dos
5657
themes/doubletime
5758
themes/doubletime_multiline
5859
themes/doubletime_multiline_pyonly
5960
themes/dulcie
6061
themes/duru
6162
themes/easy
6263
themes/elixr
64+
themes/emperor
65+
themes/envy
6366
themes/essential
64-
themes/githelpers.theme.bash
67+
themes/font
68+
themes/gallifrey
6569
themes/gitline
70+
themes/hawaii50
6671
themes/inretio
72+
themes/iterate
73+
themes/kitsune
6774
themes/lambda
6875
themes/liquidprompt
76+
themes/luan
6977
themes/modern
7078
themes/norbu
7179
themes/oh-my-posh
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# shellcheck shell=bash
22
about-completion "apm completion"
3-
# shellcheck disable=SC1090
4-
source "${BASH_IT}"/vendor/github.com/vigo/apm-bash-completion/apm
3+
# shellcheck source-path=SCRIPTDIR/../../vendor/github.com/vigo/apm-bash-completion
4+
source "${BASH_IT?}/vendor/github.com/vigo/apm-bash-completion/apm"
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# shellcheck shell=bash
2-
if _command_exists awless; then
3-
# shellcheck disable=SC1090
4-
source <(awless completion bash)
5-
fi
2+
3+
# Make sure awless is installed
4+
_bash-it-completion-helper-necessary awless || return
5+
6+
# Don't handle completion if it's already managed
7+
_bash-it-completion-helper-sufficient awless || return
8+
9+
# shellcheck disable=SC1090
10+
source <(awless completion bash)

0 commit comments

Comments
 (0)