aliases: run `shfmt` on the whole folder
My apologies to future `git blame` hunters ♥pull/2047/head
parent
0619c19f65
commit
7c2c2a5525
|
|
@ -6,10 +6,8 @@ cite 'about-alias'
|
|||
about-alias 'Apt and dpkg aliases for Ubuntu and Debian distros.'
|
||||
|
||||
# set apt aliases
|
||||
function _set_pkg_aliases()
|
||||
{
|
||||
if _command_exists apt
|
||||
then
|
||||
function _set_pkg_aliases() {
|
||||
if _command_exists apt; then
|
||||
alias apts='apt-cache search'
|
||||
alias aptshow='apt-cache show'
|
||||
alias aptinst='sudo apt-get install -V'
|
||||
|
|
|
|||
|
|
@ -4,10 +4,8 @@ cite 'about-alias'
|
|||
about-alias 'Curl aliases for convenience.'
|
||||
|
||||
# set apt aliases
|
||||
function _set_pkg_aliases()
|
||||
{
|
||||
if _command_exists curl
|
||||
then
|
||||
function _set_pkg_aliases() {
|
||||
if _command_exists curl; then
|
||||
# follow redirects
|
||||
alias cl='curl -L'
|
||||
# follow redirects, download as original name
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
cite about-alias
|
||||
about-alias 'general aliases'
|
||||
|
||||
if ls --color -d . &> /dev/null
|
||||
then
|
||||
if ls --color -d . &> /dev/null; then
|
||||
alias ls="ls --color=auto"
|
||||
elif ls -G -d . &> /dev/null
|
||||
then
|
||||
elif ls -G -d . &> /dev/null; then
|
||||
alias ls='ls -G' # Compact view, show colors
|
||||
fi
|
||||
|
||||
|
|
@ -26,13 +24,11 @@ alias vbpf="vim ~/.bash_profile"
|
|||
# colored grep
|
||||
# Need to check an existing file for a pattern that will be found to ensure
|
||||
# that the check works when on an OS that supports the color option
|
||||
if grep --color=auto "a" "${BASH_IT}/"*.md &> /dev/null
|
||||
then
|
||||
if grep --color=auto "a" "${BASH_IT}/"*.md &> /dev/null; then
|
||||
alias grep='grep --color=auto'
|
||||
fi
|
||||
|
||||
if _command_exists gshuf
|
||||
then
|
||||
if _command_exists gshuf; then
|
||||
alias shuf=gshuf
|
||||
fi
|
||||
|
||||
|
|
@ -66,8 +62,7 @@ alias -- -='cd -' # Go back
|
|||
alias h='history'
|
||||
|
||||
# Tree
|
||||
if ! _command_exists tree
|
||||
then
|
||||
if ! _command_exists tree; then
|
||||
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,7 @@
|
|||
cite 'about-alias'
|
||||
about-alias 'kubectl aliases'
|
||||
|
||||
function _set_pkg_aliases()
|
||||
{
|
||||
function _set_pkg_aliases() {
|
||||
if _command_exists kubectl; then
|
||||
alias kc='kubectl'
|
||||
alias kcgp='kubectl get pods'
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
# root directories
|
||||
#
|
||||
aliases/
|
||||
docs/
|
||||
hooks/
|
||||
scripts/
|
||||
|
|
@ -28,12 +29,6 @@ clean_files.txt
|
|||
install.sh
|
||||
lint_clean_files.sh
|
||||
|
||||
# aliases
|
||||
#
|
||||
aliases/available/dnf.aliases.bash
|
||||
aliases/available/git.aliases.bash
|
||||
aliases/available/vim.aliases.bash
|
||||
|
||||
# completions
|
||||
#
|
||||
completion/available/apm.completion.bash
|
||||
|
|
|
|||
Loading…
Reference in New Issue