Merge pull request #2047 from gaelicWizard/alias/shfmt
Aliases: lint the entire folderpull/2096/head
commit
187916d903
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'the silver searcher (ag) aliases'
|
about-alias 'the silver searcher (ag) aliases'
|
||||||
|
|
||||||
## Summary for args to less:
|
## Summary for args to less:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'ansible abbreviations'
|
about-alias 'ansible abbreviations'
|
||||||
|
|
||||||
alias ans=ansible
|
alias ans=ansible
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,8 @@ cite 'about-alias'
|
||||||
about-alias 'Apt and dpkg aliases for Ubuntu and Debian distros.'
|
about-alias 'Apt and dpkg aliases for Ubuntu and Debian distros.'
|
||||||
|
|
||||||
# set apt aliases
|
# set apt aliases
|
||||||
function _set_pkg_aliases()
|
function _set_pkg_aliases() {
|
||||||
{
|
if _command_exists apt; then
|
||||||
if _command_exists apt
|
|
||||||
then
|
|
||||||
alias apts='apt-cache search'
|
alias apts='apt-cache search'
|
||||||
alias aptshow='apt-cache show'
|
alias aptshow='apt-cache show'
|
||||||
alias aptinst='sudo apt-get install -V'
|
alias aptinst='sudo apt-get install -V'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'Atom.io editor abbreviations'
|
about-alias 'Atom.io editor abbreviations'
|
||||||
|
|
||||||
alias a='atom'
|
alias a='atom'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite about-alias
|
# shellcheck shell=bash
|
||||||
about-alias 'Aliases for the bash-it command (these aliases are automatically included with the "general" aliases)'
|
about-alias 'Aliases for the bash-it command (these aliases are automatically included with the "general" aliases)'
|
||||||
|
|
||||||
# Common misspellings of bash-it
|
# Common misspellings of bash-it
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'puppet bolt aliases'
|
about-alias 'puppet bolt aliases'
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'ruby bundler'
|
about-alias 'ruby bundler'
|
||||||
|
|
||||||
# Bundler Commands
|
# Bundler Commands
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
cite 'about-alias'
|
|
||||||
about-alias 'xclip shortcuts'
|
about-alias 'xclip shortcuts'
|
||||||
|
|
||||||
alias pbcopy="xclip -selection clipboard"
|
alias pbcopy="xclip -selection clipboard"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'common composer abbreviations'
|
about-alias 'common composer abbreviations'
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,9 @@
|
||||||
#!/bin/bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
cite 'about-alias'
|
|
||||||
about-alias 'Curl aliases for convenience.'
|
about-alias 'Curl aliases for convenience.'
|
||||||
|
|
||||||
# set apt aliases
|
# set apt aliases
|
||||||
function _set_pkg_aliases()
|
function _set_pkg_aliases() {
|
||||||
{
|
if _command_exists curl; then
|
||||||
if _command_exists curl
|
|
||||||
then
|
|
||||||
# follow redirects
|
# follow redirects
|
||||||
alias cl='curl -L'
|
alias cl='curl -L'
|
||||||
# follow redirects, download as original name
|
# follow redirects, download as original name
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
cite 'about-alias'
|
|
||||||
about-alias 'dnf aliases for fedora 22+ distros'
|
about-alias 'dnf aliases for fedora 22+ distros'
|
||||||
|
|
||||||
alias dnfl="dnf list" # List packages
|
alias dnfl="dnf list" # List packages
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'docker-compose abbreviations'
|
about-alias 'docker-compose abbreviations'
|
||||||
|
|
||||||
alias dco="docker-compose"
|
alias dco="docker-compose"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'docker abbreviations'
|
about-alias 'docker abbreviations'
|
||||||
|
|
||||||
alias dk='docker'
|
alias dk='docker'
|
||||||
|
|
@ -11,7 +11,7 @@ alias dki='docker images' # List Docker images
|
||||||
alias dkrmac='docker rm $(docker ps -a -q)' # Delete all Docker containers
|
alias dkrmac='docker rm $(docker ps -a -q)' # Delete all Docker containers
|
||||||
|
|
||||||
case $OSTYPE in
|
case $OSTYPE in
|
||||||
darwin*|*bsd*|*BSD*)
|
darwin* | *bsd* | *BSD*)
|
||||||
alias dkrmui='docker images -q -f dangling=true | xargs docker rmi' # Delete all untagged Docker images
|
alias dkrmui='docker images -q -f dangling=true | xargs docker rmi' # Delete all untagged Docker images
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
@ -19,8 +19,8 @@ case $OSTYPE in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ ! -z "$(command ls "${BASH_IT}/enabled/"{[0-9][0-9][0-9]${BASH_IT_LOAD_PRIORITY_SEPARATOR}docker,docker}.plugin.bash 2>/dev/null | head -1)" ]; then
|
if _bash-it-component-item-is-enabled plugin docker; then
|
||||||
# Function aliases from docker plugin:
|
# Function aliases from docker plugin:
|
||||||
alias dkrmlc='docker-remove-most-recent-container' # Delete most recent (i.e., last) Docker container
|
alias dkrmlc='docker-remove-most-recent-container' # Delete most recent (i.e., last) Docker container
|
||||||
alias dkrmall='docker-remove-stale-assets' # Delete all untagged images and exited containers
|
alias dkrmall='docker-remove-stale-assets' # Delete all untagged images and exited containers
|
||||||
alias dkrmli='docker-remove-most-recent-image' # Delete most recent (i.e., last) Docker image
|
alias dkrmli='docker-remove-most-recent-image' # Delete most recent (i.e., last) Docker image
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'emacs editor'
|
about-alias 'emacs editor'
|
||||||
|
|
||||||
case $OSTYPE in
|
case $OSTYPE in
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'fuck/please to retry last command with sudo'
|
about-alias 'fuck/please to retry last command with sudo'
|
||||||
|
|
||||||
# Play nicely with 'thefuck' plugin
|
# Play nicely with 'thefuck' plugin
|
||||||
if ! _command_exists fuck ; then
|
if ! _command_exists fuck; then
|
||||||
alias fuck='sudo $(fc -ln -1)'
|
alias fuck='sudo $(fc -ln -1)'
|
||||||
fi
|
fi
|
||||||
alias please=fuck
|
alias please=fuck
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,9 @@
|
||||||
cite about-alias
|
# shellcheck shell=bash
|
||||||
about-alias 'general aliases'
|
about-alias 'general aliases'
|
||||||
|
|
||||||
if ls --color -d . &> /dev/null
|
if command ls --color -d . &> /dev/null; then
|
||||||
then
|
alias ls='ls --color=auto'
|
||||||
alias ls="ls --color=auto"
|
# BSD `ls` doesn't need an argument (`-G`) when `$CLICOLOR` is set.
|
||||||
elif ls -G -d . &> /dev/null
|
|
||||||
then
|
|
||||||
alias ls='ls -G' # Compact view, show colors
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# List directory contents
|
# List directory contents
|
||||||
|
|
@ -17,34 +14,32 @@ alias l='ls -a'
|
||||||
alias l1='ls -1'
|
alias l1='ls -1'
|
||||||
alias lf='ls -F'
|
alias lf='ls -F'
|
||||||
|
|
||||||
alias _="sudo"
|
alias _='sudo'
|
||||||
|
|
||||||
# Shortcuts to edit startup files
|
# Shortcuts to edit startup files
|
||||||
alias vbrc="vim ~/.bashrc"
|
alias vbrc='${VISUAL:-vim} ~/.bashrc'
|
||||||
alias vbpf="vim ~/.bash_profile"
|
alias vbpf='${VISUAL:-vim} ~/.bash_profile'
|
||||||
|
|
||||||
# colored grep
|
# colored grep
|
||||||
# Need to check an existing file for a pattern that will be found to ensure
|
# 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
|
# that the check works when on an OS that supports the color option
|
||||||
if grep --color=auto "a" "${BASH_IT}/"*.md &> /dev/null
|
if command grep --color=auto "a" "${BASH_IT?}"/*.md &> /dev/null; then
|
||||||
then
|
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if _command_exists gshuf
|
if _command_exists gshuf; then
|
||||||
then
|
|
||||||
alias shuf=gshuf
|
alias shuf=gshuf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias c='clear'
|
alias c='clear'
|
||||||
alias cls='clear'
|
alias cls='clear'
|
||||||
|
|
||||||
alias edit="$EDITOR"
|
alias edit='${EDITOR:-${ALTERNATE_EDITOR?}}'
|
||||||
alias pager="$PAGER"
|
alias pager='${PAGER:=less}'
|
||||||
|
|
||||||
alias q='exit'
|
alias q='exit'
|
||||||
|
|
||||||
alias irc="${IRC_CLIENT:=irc}"
|
alias irc='${IRC_CLIENT:=irc}'
|
||||||
|
|
||||||
# Language aliases
|
# Language aliases
|
||||||
alias rb='ruby'
|
alias rb='ruby'
|
||||||
|
|
@ -65,8 +60,7 @@ alias -- -='cd -' # Go back
|
||||||
alias h='history'
|
alias h='history'
|
||||||
|
|
||||||
# Tree
|
# Tree
|
||||||
if ! _command_exists tree
|
if ! _command_exists tree; then
|
||||||
then
|
|
||||||
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
|
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -75,16 +69,16 @@ alias md='mkdir -p'
|
||||||
alias rd='rmdir'
|
alias rd='rmdir'
|
||||||
|
|
||||||
# Shorten extract
|
# Shorten extract
|
||||||
alias xt="extract"
|
alias xt='extract'
|
||||||
|
|
||||||
# sudo editors
|
# sudo editors
|
||||||
alias svim="sudo vim"
|
alias svim='sudo ${VISUAL:-vim}'
|
||||||
alias snano="sudo nano"
|
alias snano='sudo nano'
|
||||||
|
|
||||||
# Display whatever file is regular file or folder
|
# Display whatever file is regular file or folder
|
||||||
catt() {
|
function catt() {
|
||||||
for i in "$@"; do
|
for i in "$@"; do
|
||||||
if [ -d "$i" ]; then
|
if [[ -d "$i" ]]; then
|
||||||
ls "$i"
|
ls "$i"
|
||||||
else
|
else
|
||||||
cat "$i"
|
cat "$i"
|
||||||
|
|
@ -98,5 +92,5 @@ catt() {
|
||||||
# aliases and enable just the ones for Bash-it explicitly:
|
# aliases and enable just the ones for Bash-it explicitly:
|
||||||
# bash-it disable alias general
|
# bash-it disable alias general
|
||||||
# bash-it enable alias bash-it
|
# bash-it enable alias bash-it
|
||||||
# shellcheck source=./bash-it.aliases.bash
|
# shellcheck source-path=SCRIPTDIR
|
||||||
source "$BASH_IT/aliases/available/bash-it.aliases.bash"
|
source "$BASH_IT/aliases/available/bash-it.aliases.bash"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
cite 'about-alias'
|
|
||||||
about-alias 'common git abbreviations'
|
about-alias 'common git abbreviations'
|
||||||
|
|
||||||
alias g='git'
|
alias g='git'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'common git-svn abbreviations'
|
about-alias 'common git-svn abbreviations'
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'heroku task abbreviations'
|
about-alias 'heroku task abbreviations'
|
||||||
|
|
||||||
# heroku
|
# heroku
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'mercurial abbreviations'
|
about-alias 'mercurial abbreviations'
|
||||||
|
|
||||||
alias hs='hg status'
|
alias hs='hg status'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
# Some aliases for Homebrew Cask
|
# shellcheck shell=bash
|
||||||
|
about-alias 'Some aliases for Homebrew Cask'
|
||||||
cite 'about-alias'
|
|
||||||
about-alias 'homebrew-cask abbreviations'
|
|
||||||
|
|
||||||
alias bcin='brew cask install'
|
alias bcin='brew cask install'
|
||||||
alias bcrm='brew cask uninstall'
|
alias bcrm='brew cask uninstall'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
# Some aliases for Homebrew
|
# shellcheck shell=bash
|
||||||
|
about-alias 'Some aliases for Homebrew'
|
||||||
cite 'about-alias'
|
|
||||||
about-alias 'homebrew abbreviations'
|
|
||||||
|
|
||||||
alias bup='brew update && brew upgrade'
|
alias bup='brew update && brew upgrade'
|
||||||
alias bout='brew outdated'
|
alias bout='brew outdated'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'homesick aliases'
|
about-alias 'homesick aliases'
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
|
|
@ -19,6 +19,5 @@ alias sikpsh="homesick push dotfiles"
|
||||||
alias sikrc="homesick rc dotfiles"
|
alias sikrc="homesick rc dotfiles"
|
||||||
alias sikpth="homesick show_path dotfiles"
|
alias sikpth="homesick show_path dotfiles"
|
||||||
alias sikst="homesick status dotfiles"
|
alias sikst="homesick status dotfiles"
|
||||||
alias siktrk="homesick track $1 dotfiles"
|
|
||||||
alias sikulnk="homesick unlink dotfiles"
|
alias sikulnk="homesick unlink dotfiles"
|
||||||
alias sikv="homesick version"
|
alias sikv="homesick version"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'jitsu task abbreviations'
|
about-alias 'jitsu task abbreviations'
|
||||||
|
|
||||||
# jitsu
|
# jitsu
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,7 @@
|
||||||
#!/bin/bash
|
# shellcheck shell=bash
|
||||||
#
|
|
||||||
# -binaryanomaly
|
|
||||||
|
|
||||||
cite 'about-alias'
|
|
||||||
about-alias 'kubectl aliases'
|
about-alias 'kubectl aliases'
|
||||||
|
|
||||||
function _set_pkg_aliases()
|
function _set_pkg_aliases() {
|
||||||
{
|
|
||||||
if _command_exists kubectl; then
|
if _command_exists kubectl; then
|
||||||
alias kc='kubectl'
|
alias kc='kubectl'
|
||||||
alias kcgp='kubectl get pods'
|
alias kcgp='kubectl get pods'
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'laravel artisan abbreviations'
|
about-alias 'laravel artisan abbreviations'
|
||||||
|
|
||||||
# A list of useful laravel aliases
|
# A list of useful laravel aliases
|
||||||
|
|
||||||
alias laravel="${HOME}/.composer/vendor/bin/laravel"
|
alias laravel='${HOME?}/.composer/vendor/bin/laravel'
|
||||||
# asset
|
# asset
|
||||||
alias a:apub='php artisan asset:publish'
|
alias a:apub='php artisan asset:publish'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'maven abbreviations'
|
about-alias 'maven abbreviations'
|
||||||
|
|
||||||
alias mci='mvn clean install'
|
alias mci='mvn clean install'
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
#!/bin/bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
cite 'about-alias'
|
|
||||||
about-alias 'MSYS2 aliases'
|
about-alias 'MSYS2 aliases'
|
||||||
|
|
||||||
LS_COMMON="-hG"
|
LS_COMMON="-hG"
|
||||||
|
|
@ -9,7 +7,7 @@ LS_COMMON="$LS_COMMON -I NTUSER.DAT\* -I ntuser.dat\*"
|
||||||
|
|
||||||
# alias
|
# alias
|
||||||
# setup the main ls alias if we've established common args
|
# setup the main ls alias if we've established common args
|
||||||
test -n "$LS_COMMON" && alias ls="command ls $LS_COMMON"
|
alias ls='command ls ${LS_COMMON:-}'
|
||||||
alias ll="ls -l"
|
alias ll="ls -l"
|
||||||
alias la="ls -a"
|
alias la="ls -a"
|
||||||
alias lal="ll -a"
|
alias lal="ll -a"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'the Node.js environment aliases'
|
about-alias 'the Node.js environment aliases'
|
||||||
|
|
||||||
# alias to setup nodejs development environment
|
# alias to setup nodejs development environment
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'common npm abbreviations'
|
about-alias 'common npm abbreviations'
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,26 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'osx-specific aliases'
|
about-alias 'osx-specific aliases'
|
||||||
|
|
||||||
# Desktop Programs
|
# Desktop Programs
|
||||||
alias fireworks="open -a '/Applications/Adobe Fireworks CS3/Adobe Fireworks CS3.app'"
|
alias fireworks='open -a "/Applications/Adobe Fireworks CS3/Adobe Fireworks CS3.app"'
|
||||||
alias photoshop="open -a '/Applications/Adobe Photoshop CS3/Adobe Photoshop.app'"
|
alias photoshop='open -a "/Applications/Adobe Photoshop CS3/Adobe Photoshop.app"'
|
||||||
alias preview="open -a '$PREVIEW'"
|
alias preview='open -a "${PREVIEW?}"'
|
||||||
alias xcode="open -a '/Applications/XCode.app'"
|
alias xcode='open -a "/Applications/XCode.app"'
|
||||||
alias filemerge="open -a '/Developer/Applications/Utilities/FileMerge.app'"
|
alias filemerge='open -a "/Developer/Applications/Utilities/FileMerge.app"'
|
||||||
alias safari="open -a safari"
|
alias safari='open -a safari'
|
||||||
alias firefox="open -a firefox"
|
alias firefox='open -a firefox'
|
||||||
alias chrome="open -a google\ chrome"
|
alias chrome='open -a "Google Chrome"'
|
||||||
alias chromium="open -a chromium"
|
alias chromium='open -a chromium'
|
||||||
alias dashcode="open -a dashcode"
|
alias dashcode='open -a dashcode'
|
||||||
alias f='open -a Finder '
|
alias f='open -a Finder '
|
||||||
alias fh='open -a Finder .'
|
alias fh='open -a Finder .'
|
||||||
alias textedit='open -a TextEdit'
|
alias textedit='open -a TextEdit'
|
||||||
alias hex='open -a "Hex Fiend"'
|
alias hex='open -a "Hex Fiend"'
|
||||||
alias skype='open -a Skype'
|
alias skype='open -a Skype'
|
||||||
alias mou='open -a Mou'
|
alias mou='open -a Mou'
|
||||||
alias subl='open -a Sublime\ Text'
|
alias subl='open -a "Sublime Text"'
|
||||||
|
|
||||||
if [ -s /usr/bin/firefox ] ; then
|
if [[ -s /usr/bin/firefox ]]; then
|
||||||
unalias firefox
|
unalias firefox
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -37,19 +37,20 @@ alias whotunes='lsof -r 2 -n -P -F n -c iTunes -a -i TCP@`hostname`:3689'
|
||||||
alias flush='dscacheutil -flushcache'
|
alias flush='dscacheutil -flushcache'
|
||||||
|
|
||||||
# Show/hide hidden files (for Mac OS X Mavericks)
|
# Show/hide hidden files (for Mac OS X Mavericks)
|
||||||
alias showhidden="defaults write com.apple.finder AppleShowAllFiles TRUE"
|
alias showhidden='defaults write com.apple.finder AppleShowAllFiles TRUE'
|
||||||
alias hidehidden="defaults write com.apple.finder AppleShowAllFiles FALSE"
|
alias hidehidden='defaults write com.apple.finder AppleShowAllFiles FALSE'
|
||||||
|
|
||||||
# From http://apple.stackexchange.com/questions/110343/copy-last-command-in-terminal
|
# From http://apple.stackexchange.com/questions/110343/copy-last-command-in-terminal
|
||||||
alias copyLastCmd='fc -ln -1 | awk '\''{$1=$1}1'\'' ORS='\'''\'' | pbcopy'
|
# shellcheck disable=SC2142 # The quoting confuses `shellcheck`...
|
||||||
|
alias copyLastCmd="fc -ln -1 | awk '{\$1=\$1}1' ORS='' | pbcopy"
|
||||||
|
|
||||||
# Use Finder's Quick Look on a file (^C or space to close)
|
# Use Finder's Quick Look on a file (^C or space to close)
|
||||||
alias ql='qlmanage -p 2>/dev/null'
|
alias ql='qlmanage -p 2>/dev/null'
|
||||||
|
|
||||||
# Mute/Unmute the system volume. Plays nice with all other volume settings.
|
# Mute/Unmute the system volume. Plays nice with all other volume settings.
|
||||||
alias mute="osascript -e 'set volume output muted true'"
|
alias mute='osascript -e "set volume output muted true"'
|
||||||
alias unmute="osascript -e 'set volume output muted false'"
|
alias unmute='osascript -e "set volume output muted false"'
|
||||||
|
|
||||||
# Pin to the tail of long commands for an audible alert after long processes
|
# Pin to the tail of long commands for an audible alert after long processes
|
||||||
## curl http://downloads.com/hugefile.zip; lmk
|
## curl http://downloads.com/hugefile.zip; lmk
|
||||||
alias lmk="say 'Process complete.'"
|
alias lmk='say "Process complete."'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'phoenix abbreviations'
|
about-alias 'phoenix abbreviations'
|
||||||
|
|
||||||
# Phoenix Commands
|
# Phoenix Commands
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'puppet aliases'
|
about-alias 'puppet aliases'
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'pyrocms abbreviations'
|
about-alias 'pyrocms abbreviations'
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'rails abbreviations'
|
about-alias 'rails abbreviations'
|
||||||
|
|
||||||
# Rails Commands
|
# Rails Commands
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'common svn abbreviations'
|
about-alias 'common svn abbreviations'
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'systemd service'
|
about-alias 'systemd service'
|
||||||
|
|
||||||
case $OSTYPE in
|
case $OSTYPE in
|
||||||
linux*)
|
linux*)
|
||||||
# Improve aliases by bringing the common root `sc|scd` + `sre` for action + `u` for user
|
# Improve aliases by bringing the common root `sc|scd` + `sre` for action + `u` for user
|
||||||
alias sc='systemctl'
|
alias sc='systemctl'
|
||||||
alias scu='systemctl --user'
|
alias scu='systemctl --user'
|
||||||
alias scdr='systemctl daemon-reload'
|
alias scdr='systemctl daemon-reload'
|
||||||
|
|
@ -14,7 +14,7 @@ case $OSTYPE in
|
||||||
alias sceu='systemctl --user stop'
|
alias sceu='systemctl --user stop'
|
||||||
alias scs='systemctl start'
|
alias scs='systemctl start'
|
||||||
alias scsu='systemctl --user start'
|
alias scsu='systemctl --user start'
|
||||||
# Keeping previous aliases for a non-breaking change.
|
# Keeping previous aliases for a non-breaking change.
|
||||||
alias scue='sceu'
|
alias scue='sceu'
|
||||||
alias scus='scsu'
|
alias scus='scsu'
|
||||||
alias scur='scdru'
|
alias scur='scdru'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
# Aliases for Terraform and Terragrunt
|
# shellcheck shell=bash
|
||||||
|
about-alias 'Aliases for Terraform and Terragrunt'
|
||||||
cite 'about-alias'
|
|
||||||
about-alias 'Terraform abbreviations'
|
|
||||||
|
|
||||||
alias tf='terraform'
|
alias tf='terraform'
|
||||||
alias tfv='terraform validate'
|
alias tfv='terraform validate'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
# Aliases for Terraform and Terragrunt
|
# shellcheck shell=bash
|
||||||
|
about-alias 'Aliases for Terraform and Terragrunt'
|
||||||
cite 'about-alias'
|
|
||||||
about-alias 'Terragrunt abbreviations'
|
|
||||||
|
|
||||||
alias tg='terragrunt'
|
alias tg='terragrunt'
|
||||||
alias tgv='terragrunt validate'
|
alias tgv='terragrunt validate'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'textmate abbreviations'
|
about-alias 'textmate abbreviations'
|
||||||
|
|
||||||
case $OSTYPE in
|
case $OSTYPE in
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'Tmux terminal multiplexer'
|
about-alias 'Tmux terminal multiplexer'
|
||||||
|
|
||||||
alias txl='tmux ls'
|
alias txl='tmux ls'
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'todo.txt-cli abbreviations'
|
about-alias 'todo.txt-cli abbreviations'
|
||||||
|
|
||||||
alias tls="$TODO ls"
|
alias tls='"${TODO?}" ls'
|
||||||
alias ta="$TODO a"
|
alias ta='"${TODO?}" a'
|
||||||
alias trm="$TODO rm"
|
alias trm='"${TODO?}" rm'
|
||||||
alias tdo="$TODO do"
|
alias tdo='"${TODO?}" do'
|
||||||
alias tpri="$TODO pri"
|
alias tpri='"${TODO?}" pri'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'uuid-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'uuidgen aliases'
|
about-alias 'uuidgen aliases'
|
||||||
|
|
||||||
if _command_exists uuid; then # Linux
|
if _command_exists uuid; then # Linux
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'vagrant aliases'
|
about-alias 'vagrant aliases'
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'vault aliases'
|
about-alias 'vault aliases'
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
cite 'about-alias'
|
|
||||||
about-alias 'vim abbreviations'
|
about-alias 'vim abbreviations'
|
||||||
|
|
||||||
_command_exists vim || return
|
_command_exists vim || return
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
cite 'about-alias'
|
# shellcheck shell=bash
|
||||||
about-alias 'yarn package manager aliases'
|
about-alias 'yarn package manager aliases'
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
# root directories
|
# root directories
|
||||||
#
|
#
|
||||||
|
aliases/
|
||||||
docs/
|
docs/
|
||||||
hooks/
|
hooks/
|
||||||
scripts/
|
scripts/
|
||||||
|
|
@ -28,12 +29,6 @@ clean_files.txt
|
||||||
install.sh
|
install.sh
|
||||||
lint_clean_files.sh
|
lint_clean_files.sh
|
||||||
|
|
||||||
# aliases
|
|
||||||
#
|
|
||||||
aliases/available/dnf.aliases.bash
|
|
||||||
aliases/available/git.aliases.bash
|
|
||||||
aliases/available/vim.aliases.bash
|
|
||||||
|
|
||||||
# completions
|
# completions
|
||||||
#
|
#
|
||||||
completion/available/apm.completion.bash
|
completion/available/apm.completion.bash
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue