Skip to content

Commit 187916d

Browse files
authored
Merge pull request #2047 from gaelicWizard/alias/shfmt
Aliases: lint the entire folder
2 parents caae145 + 12a734c commit 187916d

Some content is hidden

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

48 files changed

+281
-317
lines changed

aliases/available/ag.aliases.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cite 'about-alias'
1+
# shellcheck shell=bash
22
about-alias 'the silver searcher (ag) aliases'
33

44
## Summary for args to less:

aliases/available/ansible.aliases.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cite 'about-alias'
1+
# shellcheck shell=bash
22
about-alias 'ansible abbreviations'
33

44
alias ans=ansible

aliases/available/apt.aliases.bash

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ cite 'about-alias'
66
about-alias 'Apt and dpkg aliases for Ubuntu and Debian distros.'
77

88
# set apt aliases
9-
function _set_pkg_aliases()
10-
{
11-
if _command_exists apt
12-
then
9+
function _set_pkg_aliases() {
10+
if _command_exists apt; then
1311
alias apts='apt-cache search'
1412
alias aptshow='apt-cache show'
1513
alias aptinst='sudo apt-get install -V'

aliases/available/atom.aliases.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cite 'about-alias'
1+
# shellcheck shell=bash
22
about-alias 'Atom.io editor abbreviations'
33

44
alias a='atom'

aliases/available/bash-it.aliases.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cite about-alias
1+
# shellcheck shell=bash
22
about-alias 'Aliases for the bash-it command (these aliases are automatically included with the "general" aliases)'
33

44
# Common misspellings of bash-it

aliases/available/bolt.aliases.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cite 'about-alias'
1+
# shellcheck shell=bash
22
about-alias 'puppet bolt aliases'
33

44
# Aliases

aliases/available/bundler.aliases.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cite 'about-alias'
1+
# shellcheck shell=bash
22
about-alias 'ruby bundler'
33

44
# Bundler Commands

aliases/available/clipboard.aliases.bash

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# shellcheck shell=bash
2-
cite 'about-alias'
32
about-alias 'xclip shortcuts'
43

54
alias pbcopy="xclip -selection clipboard"

aliases/available/composer.aliases.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cite 'about-alias'
1+
# shellcheck shell=bash
22
about-alias 'common composer abbreviations'
33

44
# Aliases

aliases/available/curl.aliases.bash

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
1-
#!/bin/bash
2-
3-
cite 'about-alias'
1+
# shellcheck shell=bash
42
about-alias 'Curl aliases for convenience.'
53

64
# set apt aliases
7-
function _set_pkg_aliases()
8-
{
9-
if _command_exists curl
10-
then
5+
function _set_pkg_aliases() {
6+
if _command_exists curl; then
117
# follow redirects
12-
alias cl='curl -L'
13-
# follow redirects, download as original name
14-
alias clo='curl -L -O'
15-
# follow redirects, download as original name, continue
16-
alias cloc='curl -L -C - -O'
17-
# follow redirects, download as original name, continue, retry 5 times
18-
alias clocr='curl -L -C - -O --retry 5'
19-
# follow redirects, fetch banner
20-
alias clb='curl -L -I'
8+
alias cl='curl -L'
9+
# follow redirects, download as original name
10+
alias clo='curl -L -O'
11+
# follow redirects, download as original name, continue
12+
alias cloc='curl -L -C - -O'
13+
# follow redirects, download as original name, continue, retry 5 times
14+
alias clocr='curl -L -C - -O --retry 5'
15+
# follow redirects, fetch banner
16+
alias clb='curl -L -I'
2117
# see only response headers from a get request
2218
alias clhead='curl -D - -so /dev/null'
2319
fi

0 commit comments

Comments
 (0)