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.'
|
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'
|
||||||
|
|
|
||||||
|
|
@ -4,20 +4,18 @@ 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
|
||||||
alias clo='curl -L -O'
|
alias clo='curl -L -O'
|
||||||
# follow redirects, download as original name, continue
|
# follow redirects, download as original name, continue
|
||||||
alias cloc='curl -L -C - -O'
|
alias cloc='curl -L -C - -O'
|
||||||
# follow redirects, download as original name, continue, retry 5 times
|
# follow redirects, download as original name, continue, retry 5 times
|
||||||
alias clocr='curl -L -C - -O --retry 5'
|
alias clocr='curl -L -C - -O --retry 5'
|
||||||
# follow redirects, fetch banner
|
# follow redirects, fetch banner
|
||||||
alias clb='curl -L -I'
|
alias clb='curl -L -I'
|
||||||
# see only response headers from a get request
|
# see only response headers from a get request
|
||||||
alias clhead='curl -D - -so /dev/null'
|
alias clhead='curl -D - -so /dev/null'
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -2,31 +2,31 @@ cite 'about-alias'
|
||||||
about-alias 'docker abbreviations'
|
about-alias 'docker abbreviations'
|
||||||
|
|
||||||
alias dk='docker'
|
alias dk='docker'
|
||||||
alias dklc='docker ps -l' # List last Docker container
|
alias dklc='docker ps -l' # List last Docker container
|
||||||
alias dklcid='docker ps -l -q' # List last Docker container ID
|
alias dklcid='docker ps -l -q' # List last Docker container ID
|
||||||
alias dklcip='docker inspect -f "{{.NetworkSettings.IPAddress}}" $(docker ps -l -q)' # Get IP of last Docker container
|
alias dklcip='docker inspect -f "{{.NetworkSettings.IPAddress}}" $(docker ps -l -q)' # Get IP of last Docker container
|
||||||
alias dkps='docker ps' # List running Docker containers
|
alias dkps='docker ps' # List running Docker containers
|
||||||
alias dkpsa='docker ps -a' # List all Docker containers
|
alias dkpsa='docker ps -a' # List all Docker containers
|
||||||
alias dki='docker images' # List Docker images
|
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
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
alias dkrmui='docker images -q -f dangling=true | xargs -r docker rmi' # Delete all untagged Docker images
|
alias dkrmui='docker images -q -f dangling=true | xargs -r docker rmi' # Delete all untagged Docker images
|
||||||
;;
|
;;
|
||||||
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 [ ! -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
|
||||||
# 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
|
||||||
alias dkrmi='docker-remove-images' # Delete images for supplied IDs or all if no IDs are passed as arguments
|
alias dkrmi='docker-remove-images' # Delete images for supplied IDs or all if no IDs are passed as arguments
|
||||||
alias dkideps='docker-image-dependencies' # Output a graph of image dependencies using Graphiz
|
alias dkideps='docker-image-dependencies' # Output a graph of image dependencies using Graphiz
|
||||||
alias dkre='docker-runtime-environment' # List environmental variables of the supplied image ID
|
alias dkre='docker-runtime-environment' # List environmental variables of the supplied image ID
|
||||||
fi
|
fi
|
||||||
alias dkelc='docker exec -it $(dklcid) bash --login' # Enter last container (works with Docker 1.3 and above)
|
alias dkelc='docker exec -it $(dklcid) bash --login' # Enter last container (works with Docker 1.3 and above)
|
||||||
alias dkrmflast='docker rm -f $(dklcid)'
|
alias dkrmflast='docker rm -f $(dklcid)'
|
||||||
|
|
|
||||||
|
|
@ -2,15 +2,15 @@ cite 'about-alias'
|
||||||
about-alias 'emacs editor'
|
about-alias 'emacs editor'
|
||||||
|
|
||||||
case $OSTYPE in
|
case $OSTYPE in
|
||||||
linux*)
|
linux*)
|
||||||
alias em='emacs'
|
alias em='emacs'
|
||||||
alias en='emacs -nw'
|
alias en='emacs -nw'
|
||||||
alias e='emacsclient -n'
|
alias e='emacsclient -n'
|
||||||
alias et='emacsclient -t'
|
alias et='emacsclient -t'
|
||||||
alias ed='emacs --daemon'
|
alias ed='emacs --daemon'
|
||||||
alias E='SUDO_EDITOR=emacsclient sudo -e'
|
alias E='SUDO_EDITOR=emacsclient sudo -e'
|
||||||
;;
|
;;
|
||||||
darwin*)
|
darwin*)
|
||||||
alias em='open -a emacs'
|
alias em='open -a emacs'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ cite 'about-alias'
|
||||||
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
|
||||||
alias plz=please
|
alias plz=please
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,15 @@
|
||||||
cite about-alias
|
cite about-alias
|
||||||
about-alias 'general aliases'
|
about-alias 'general aliases'
|
||||||
|
|
||||||
if ls --color -d . &> /dev/null
|
if ls --color -d . &> /dev/null; then
|
||||||
then
|
alias ls="ls --color=auto"
|
||||||
alias ls="ls --color=auto"
|
elif ls -G -d . &> /dev/null; then
|
||||||
elif ls -G -d . &> /dev/null
|
alias ls='ls -G' # Compact view, show colors
|
||||||
then
|
|
||||||
alias ls='ls -G' # Compact view, show colors
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# List directory contents
|
# List directory contents
|
||||||
alias sl=ls
|
alias sl=ls
|
||||||
alias la='ls -AF' # Compact view, show hidden
|
alias la='ls -AF' # Compact view, show hidden
|
||||||
alias ll='ls -al'
|
alias ll='ls -al'
|
||||||
alias l='ls -a'
|
alias l='ls -a'
|
||||||
alias l1='ls -1'
|
alias l1='ls -1'
|
||||||
|
|
@ -26,14 +24,12 @@ alias vbpf="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 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'
|
||||||
|
|
@ -66,9 +62,8 @@ 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
|
||||||
|
|
||||||
# Directory
|
# Directory
|
||||||
|
|
@ -84,13 +79,13 @@ alias snano="sudo nano"
|
||||||
|
|
||||||
# Display whatever file is regular file or folder
|
# Display whatever file is regular file or folder
|
||||||
catt() {
|
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"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# The Bash-it aliases were moved to the `bash-it.aliases.bash` file. The intent of this
|
# The Bash-it aliases were moved to the `bash-it.aliases.bash` file. The intent of this
|
||||||
|
|
|
||||||
|
|
@ -5,21 +5,20 @@
|
||||||
cite 'about-alias'
|
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'
|
alias kcgd='kubectl get deployments'
|
||||||
alias kcgd='kubectl get deployments'
|
alias kcgn='kubectl get nodes'
|
||||||
alias kcgn='kubectl get nodes'
|
alias kcdp='kubectl describe pod'
|
||||||
alias kcdp='kubectl describe pod'
|
alias kcdd='kubectl describe deployment'
|
||||||
alias kcdd='kubectl describe deployment'
|
alias kcdn='kubectl describe node'
|
||||||
alias kcdn='kubectl describe node'
|
alias kcgpan='kubectl get pods --all-namespaces'
|
||||||
alias kcgpan='kubectl get pods --all-namespaces'
|
alias kcgdan='kubectl get deployments --all-namespaces'
|
||||||
alias kcgdan='kubectl get deployments --all-namespaces'
|
# launches a disposable netshoot pod in the k8s cluster
|
||||||
# launches a disposable netshoot pod in the k8s cluster
|
alias kcnetshoot='kubectl run netshoot-$(date +%s) --rm -i --tty --image nicolaka/netshoot -- /bin/bash'
|
||||||
alias kcnetshoot='kubectl run netshoot-$(date +%s) --rm -i --tty --image nicolaka/netshoot -- /bin/bash'
|
fi
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_set_pkg_aliases
|
_set_pkg_aliases
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,8 @@ 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
|
||||||
|
|
||||||
# Requires growlnotify, which can be found in the Growl DMG under "Extras"
|
# Requires growlnotify, which can be found in the Growl DMG under "Extras"
|
||||||
|
|
|
||||||
|
|
@ -7,146 +7,146 @@ about-alias 'pyrocms abbreviations'
|
||||||
###
|
###
|
||||||
|
|
||||||
# general
|
# general
|
||||||
alias a:cl="php artisan clear-compiled" # Remove the compiled class file
|
alias a:cl="php artisan clear-compiled" # Remove the compiled class file
|
||||||
alias a:d="php artisan down" # Put the application into maintenance mode
|
alias a:d="php artisan down" # Put the application into maintenance mode
|
||||||
alias a:e="php artisan env" # Display the current framework environment
|
alias a:e="php artisan env" # Display the current framework environment
|
||||||
alias a:h="php artisan help" # Displays help for a command
|
alias a:h="php artisan help" # Displays help for a command
|
||||||
alias a:i="php artisan install" # Install the Streams Platform.
|
alias a:i="php artisan install" # Install the Streams Platform.
|
||||||
alias a:ls="php artisan list" # Lists commands
|
alias a:ls="php artisan list" # Lists commands
|
||||||
alias a:mg="php artisan migrate" # Run the database migrations
|
alias a:mg="php artisan migrate" # Run the database migrations
|
||||||
alias a:op="php artisan optimize" # Optimize the framework for better performance (deprecated)
|
alias a:op="php artisan optimize" # Optimize the framework for better performance (deprecated)
|
||||||
alias a:pr="php artisan preset" # Swap the front-end scaffolding for the application
|
alias a:pr="php artisan preset" # Swap the front-end scaffolding for the application
|
||||||
alias a:s="php artisan serve" # Serve the application on the PHP development server
|
alias a:s="php artisan serve" # Serve the application on the PHP development server
|
||||||
alias a:u="php artisan up" # Bring the application out of maintenance mode
|
alias a:u="php artisan up" # Bring the application out of maintenance mode
|
||||||
|
|
||||||
# addon
|
# addon
|
||||||
alias a:ad:i="php artisan addon:install" # Install an addon.
|
alias a:ad:i="php artisan addon:install" # Install an addon.
|
||||||
alias a:ad:p="php artisan addon:publish" # Publish an the configuration and translations for an addon.
|
alias a:ad:p="php artisan addon:publish" # Publish an the configuration and translations for an addon.
|
||||||
alias a:ad:r="php artisan addon:reinstall" # Reinstall an addon.
|
alias a:ad:r="php artisan addon:reinstall" # Reinstall an addon.
|
||||||
alias a:ad:u="php artisan addon:uninstall" # Uninstall an addon.
|
alias a:ad:u="php artisan addon:uninstall" # Uninstall an addon.
|
||||||
|
|
||||||
# app
|
# app
|
||||||
alias a:ap:n="php artisan app:name" # Set the application namespace
|
alias a:ap:n="php artisan app:name" # Set the application namespace
|
||||||
alias a:ap:p="php artisan app:publish" # Publish general application override files.
|
alias a:ap:p="php artisan app:publish" # Publish general application override files.
|
||||||
|
|
||||||
# assets
|
# assets
|
||||||
alias a:as:cl="php artisan assets:clear" # Clear compiled public assets.
|
alias a:as:cl="php artisan assets:clear" # Clear compiled public assets.
|
||||||
|
|
||||||
# auth
|
# auth
|
||||||
alias a:au:clrs="php artisan auth:clear-resets" # Flush expired password reset tokens
|
alias a:au:clrs="php artisan auth:clear-resets" # Flush expired password reset tokens
|
||||||
|
|
||||||
# cache
|
# cache
|
||||||
alias a:ca:cl="php artisan cache:clear" # Flush the application cache
|
alias a:ca:cl="php artisan cache:clear" # Flush the application cache
|
||||||
alias a:ca:f="php artisan cache:forget" # Remove an item from the cache
|
alias a:ca:f="php artisan cache:forget" # Remove an item from the cache
|
||||||
alias a:ca:t="php artisan cache:table" # Create a migration for the cache database table
|
alias a:ca:t="php artisan cache:table" # Create a migration for the cache database table
|
||||||
|
|
||||||
# config
|
# config
|
||||||
alias a:co:ca="php artisan config:cache" # Create a cache file for faster configuration loading
|
alias a:co:ca="php artisan config:cache" # Create a cache file for faster configuration loading
|
||||||
alias a:co:cl="php artisan config:clear" # Remove the configuration cache file
|
alias a:co:cl="php artisan config:clear" # Remove the configuration cache file
|
||||||
|
|
||||||
# db
|
# db
|
||||||
alias a:db:s="php artisan db:seed" # Seed the database with records
|
alias a:db:s="php artisan db:seed" # Seed the database with records
|
||||||
|
|
||||||
# env
|
# env
|
||||||
alias a:en:s="php artisan env:set" # Set an environmental value.
|
alias a:en:s="php artisan env:set" # Set an environmental value.
|
||||||
|
|
||||||
# event
|
# event
|
||||||
alias a:ev:g="php artisan event:generate" # Generate the missing events and listeners based on registration
|
alias a:ev:g="php artisan event:generate" # Generate the missing events and listeners based on registration
|
||||||
|
|
||||||
# extension
|
# extension
|
||||||
alias a:ex:i="php artisan extension:install" # Install a extension.
|
alias a:ex:i="php artisan extension:install" # Install a extension.
|
||||||
alias a:ex:r="php artisan extension:reinstall" # Reinstall a extension.
|
alias a:ex:r="php artisan extension:reinstall" # Reinstall a extension.
|
||||||
alias a:ex:u="php artisan extension:uninstall" # Uninstall a extension.
|
alias a:ex:u="php artisan extension:uninstall" # Uninstall a extension.
|
||||||
|
|
||||||
# files
|
# files
|
||||||
alias a:fi:cl="php artisan files:clean" # Clean missing files from the files table.
|
alias a:fi:cl="php artisan files:clean" # Clean missing files from the files table.
|
||||||
|
|
||||||
# key
|
# key
|
||||||
alias a:ke:g="php artisan key:generate" # Set the application key
|
alias a:ke:g="php artisan key:generate" # Set the application key
|
||||||
|
|
||||||
# make
|
# make
|
||||||
alias a:mk:ad="php artisan make:addon" # Create a new addon.
|
alias a:mk:ad="php artisan make:addon" # Create a new addon.
|
||||||
alias a:mk:au="php artisan make:auth" # Scaffold basic login and registration views and routes
|
alias a:mk:au="php artisan make:auth" # Scaffold basic login and registration views and routes
|
||||||
alias a:mk:cm="php artisan make:command" # Create a new Artisan command
|
alias a:mk:cm="php artisan make:command" # Create a new Artisan command
|
||||||
alias a:mk:ct="php artisan make:controller" # Create a new controller class
|
alias a:mk:ct="php artisan make:controller" # Create a new controller class
|
||||||
alias a:mk:ev="php artisan make:event" # Create a new event class
|
alias a:mk:ev="php artisan make:event" # Create a new event class
|
||||||
alias a:mk:fa="php artisan make:factory" # Create a new model factory
|
alias a:mk:fa="php artisan make:factory" # Create a new model factory
|
||||||
alias a:mk:j="php artisan make:job" # Create a new job class
|
alias a:mk:j="php artisan make:job" # Create a new job class
|
||||||
alias a:mk:li="php artisan make:listener" # Create a new event listener class
|
alias a:mk:li="php artisan make:listener" # Create a new event listener class
|
||||||
alias a:mk:ma="php artisan make:mail" # Create a new email class
|
alias a:mk:ma="php artisan make:mail" # Create a new email class
|
||||||
alias a:mk:mw="php artisan make:middleware" # Create a new middleware class
|
alias a:mk:mw="php artisan make:middleware" # Create a new middleware class
|
||||||
alias a:mk:mg="php artisan make:migration" # Create a new migration file
|
alias a:mk:mg="php artisan make:migration" # Create a new migration file
|
||||||
alias a:mk:md="php artisan make:model" # Create a new Eloquent model class
|
alias a:mk:md="php artisan make:model" # Create a new Eloquent model class
|
||||||
alias a:mk:no="php artisan make:notification" # Create a new notification class
|
alias a:mk:no="php artisan make:notification" # Create a new notification class
|
||||||
alias a:mk:po="php artisan make:policy" # Create a new policy class
|
alias a:mk:po="php artisan make:policy" # Create a new policy class
|
||||||
alias a:mk:pr="php artisan make:provider" # Create a new service provider class
|
alias a:mk:pr="php artisan make:provider" # Create a new service provider class
|
||||||
alias a:mk:rq="php artisan make:request" # Create a new form request class
|
alias a:mk:rq="php artisan make:request" # Create a new form request class
|
||||||
alias a:mk:rs="php artisan make:resource" # Create a new resource
|
alias a:mk:rs="php artisan make:resource" # Create a new resource
|
||||||
alias a:mk:rl="php artisan make:rule" # Create a new validation rule
|
alias a:mk:rl="php artisan make:rule" # Create a new validation rule
|
||||||
alias a:mk:sd="php artisan make:seeder" # Create a new seeder class
|
alias a:mk:sd="php artisan make:seeder" # Create a new seeder class
|
||||||
alias a:mk:st="php artisan make:stream" # Make a streams entity namespace.
|
alias a:mk:st="php artisan make:stream" # Make a streams entity namespace.
|
||||||
alias a:mk:ts="php artisan make:test" # Create a new test class
|
alias a:mk:ts="php artisan make:test" # Create a new test class
|
||||||
|
|
||||||
# migrate
|
# migrate
|
||||||
alias a:mg:fr="php artisan migrate:fresh" # Drop all tables and re-run all migrations
|
alias a:mg:fr="php artisan migrate:fresh" # Drop all tables and re-run all migrations
|
||||||
alias a:mg:i="php artisan migrate:install" # Create the migration repository
|
alias a:mg:i="php artisan migrate:install" # Create the migration repository
|
||||||
alias a:mg:rf="php artisan migrate:refresh" # Reset and re-run all migrations
|
alias a:mg:rf="php artisan migrate:refresh" # Reset and re-run all migrations
|
||||||
alias a:mg:rs="php artisan migrate:reset" # Rollback all database migrations
|
alias a:mg:rs="php artisan migrate:reset" # Rollback all database migrations
|
||||||
alias a:mg:rl="php artisan migrate:rollback" # Rollback the last database migration
|
alias a:mg:rl="php artisan migrate:rollback" # Rollback the last database migration
|
||||||
alias a:mg:st="php artisan migrate:status" # Show the status of each migration
|
alias a:mg:st="php artisan migrate:status" # Show the status of each migration
|
||||||
|
|
||||||
# module
|
# module
|
||||||
alias a:mo:i="php artisan module:install" # Install a module.
|
alias a:mo:i="php artisan module:install" # Install a module.
|
||||||
alias a:mo:r="php artisan module:reinstall" # Reinstall a module.
|
alias a:mo:r="php artisan module:reinstall" # Reinstall a module.
|
||||||
alias a:mo:u="php artisan module:uninstall" # Uninstall a module.
|
alias a:mo:u="php artisan module:uninstall" # Uninstall a module.
|
||||||
|
|
||||||
# notifications
|
# notifications
|
||||||
alias a:no:tb="php artisan notifications:table" # Create a migration for the notifications table
|
alias a:no:tb="php artisan notifications:table" # Create a migration for the notifications table
|
||||||
|
|
||||||
# package
|
# package
|
||||||
alias a:pk:d="php artisan package:discover" # Rebuild the cached package manifest
|
alias a:pk:d="php artisan package:discover" # Rebuild the cached package manifest
|
||||||
|
|
||||||
# queue
|
# queue
|
||||||
alias a:qu:fa="php artisan queue:failed" # List all of the failed queue jobs
|
alias a:qu:fa="php artisan queue:failed" # List all of the failed queue jobs
|
||||||
alias a:qu:ft="php artisan queue:failed-table" # Create a migration for the failed queue jobs database table
|
alias a:qu:ft="php artisan queue:failed-table" # Create a migration for the failed queue jobs database table
|
||||||
alias a:qu:fl="php artisan queue:flush" # Flush all of the failed queue jobs
|
alias a:qu:fl="php artisan queue:flush" # Flush all of the failed queue jobs
|
||||||
alias a:qu:fg="php artisan queue:forget" # Delete a failed queue job
|
alias a:qu:fg="php artisan queue:forget" # Delete a failed queue job
|
||||||
alias a:qu:li="php artisan queue:listen" # Listen to a given queue
|
alias a:qu:li="php artisan queue:listen" # Listen to a given queue
|
||||||
alias a:qu:rs="php artisan queue:restart" # Restart queue worker daemons after their current job
|
alias a:qu:rs="php artisan queue:restart" # Restart queue worker daemons after their current job
|
||||||
alias a:qu:rt="php artisan queue:retry" # Retry a failed queue job
|
alias a:qu:rt="php artisan queue:retry" # Retry a failed queue job
|
||||||
alias a:qu:tb="php artisan queue:table" # Create a migration for the queue jobs database table
|
alias a:qu:tb="php artisan queue:table" # Create a migration for the queue jobs database table
|
||||||
alias a:qu:w="php artisan queue:work" # Start processing jobs on the queue as a daemon
|
alias a:qu:w="php artisan queue:work" # Start processing jobs on the queue as a daemon
|
||||||
|
|
||||||
# route
|
# route
|
||||||
alias a:ro:ca="php artisan route:cache" # Create a route cache file for faster route registration
|
alias a:ro:ca="php artisan route:cache" # Create a route cache file for faster route registration
|
||||||
alias a:ro:cl="php artisan route:clear" # Remove the route cache file
|
alias a:ro:cl="php artisan route:clear" # Remove the route cache file
|
||||||
alias a:ro:ls="php artisan route:list" # List all registered routes
|
alias a:ro:ls="php artisan route:list" # List all registered routes
|
||||||
|
|
||||||
# schedule
|
# schedule
|
||||||
alias a:sc:r="php artisan schedule:run" # Run the scheduled commands
|
alias a:sc:r="php artisan schedule:run" # Run the scheduled commands
|
||||||
|
|
||||||
# scout
|
# scout
|
||||||
alias a:su:fl="php artisan scout:flush" # Flush all of the model's records from the index
|
alias a:su:fl="php artisan scout:flush" # Flush all of the model's records from the index
|
||||||
alias a:su:im="php artisan scout:import" # Import the given model into the search index
|
alias a:su:im="php artisan scout:import" # Import the given model into the search index
|
||||||
|
|
||||||
# session
|
# session
|
||||||
alias a:se:tb="php artisan session:table" # Create a migration for the session database table
|
alias a:se:tb="php artisan session:table" # Create a migration for the session database table
|
||||||
|
|
||||||
# storage
|
# storage
|
||||||
alias a:sg:l="php artisan storage:link" # Create a symbolic link from "public/storage" to "storage/app/public"
|
alias a:sg:l="php artisan storage:link" # Create a symbolic link from "public/storage" to "storage/app/public"
|
||||||
|
|
||||||
# streams
|
# streams
|
||||||
alias a:st:cl="php artisan streams:cleanup" # Cleanup streams entry models.
|
alias a:st:cl="php artisan streams:cleanup" # Cleanup streams entry models.
|
||||||
alias a:st:co="php artisan streams:compile" # Compile streams entry models.
|
alias a:st:co="php artisan streams:compile" # Compile streams entry models.
|
||||||
alias a:st:d="php artisan streams:destroy" # Destroy a namespace.
|
alias a:st:d="php artisan streams:destroy" # Destroy a namespace.
|
||||||
alias a:st:p="php artisan streams:publish" # Publish configuration and translations for streams.
|
alias a:st:p="php artisan streams:publish" # Publish configuration and translations for streams.
|
||||||
alias a:st:r="php artisan streams:refresh" # Refresh streams generated components.
|
alias a:st:r="php artisan streams:refresh" # Refresh streams generated components.
|
||||||
|
|
||||||
# tntsearch
|
# tntsearch
|
||||||
alias a:tn:im="php artisan tntsearch:import" # Import the given model into the search index
|
alias a:tn:im="php artisan tntsearch:import" # Import the given model into the search index
|
||||||
|
|
||||||
# vendor
|
# vendor
|
||||||
alias a:ve:p="php artisan vendor:publish" # Publish any publishable assets from vendor packages
|
alias a:ve:p="php artisan vendor:publish" # Publish any publishable assets from vendor packages
|
||||||
|
|
||||||
# view
|
# view
|
||||||
alias a:vi:cl="php artisan view:clear" # Clear all compiled view files
|
alias a:vi:cl="php artisan view:clear" # Clear all compiled view files
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,9 @@ alias rd='rails destroy'
|
||||||
alias dbm='rake db:migrate'
|
alias dbm='rake db:migrate'
|
||||||
|
|
||||||
alias ss='script/server'
|
alias ss='script/server'
|
||||||
alias ts="thin start" # thin server
|
alias ts="thin start" # thin server
|
||||||
alias sc='script/console'
|
alias sc='script/console'
|
||||||
alias restartapp='touch tmp/restart.txt'
|
alias restartapp='touch tmp/restart.txt'
|
||||||
alias restart='touch tmp/restart.txt' # restart passenger
|
alias restart='touch tmp/restart.txt' # restart passenger
|
||||||
alias devlog='tail -f log/development.log'
|
alias devlog='tail -f log/development.log'
|
||||||
alias taild='tail -f log/development.log' # tail dev log
|
alias taild='tail -f log/development.log' # tail dev log
|
||||||
|
|
|
||||||
|
|
@ -2,21 +2,21 @@ cite 'about-alias'
|
||||||
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'
|
||||||
alias scdru='systemctl --user daemon-reload'
|
alias scdru='systemctl --user daemon-reload'
|
||||||
alias scr='systemctl restart'
|
alias scr='systemctl restart'
|
||||||
alias scru='systemctl --user restart'
|
alias scru='systemctl --user restart'
|
||||||
alias sce='systemctl stop'
|
alias sce='systemctl stop'
|
||||||
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'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ cite 'about-alias'
|
||||||
about-alias 'textmate abbreviations'
|
about-alias 'textmate abbreviations'
|
||||||
|
|
||||||
case $OSTYPE in
|
case $OSTYPE in
|
||||||
darwin*)
|
darwin*)
|
||||||
# Textmate
|
# Textmate
|
||||||
alias e='mate . &'
|
alias e='mate . &'
|
||||||
alias et='mate app config db lib public script test spec config.ru Gemfile Rakefile README &'
|
alias et='mate app config db lib public script test spec config.ru Gemfile Rakefile README &'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,10 @@ cite 'uuid-alias'
|
||||||
about-alias 'uuidgen aliases'
|
about-alias 'uuidgen aliases'
|
||||||
|
|
||||||
if _command_exists uuid; then # Linux
|
if _command_exists uuid; then # Linux
|
||||||
alias uuidu="uuid | tr '[:lower:]' '[:upper:]'"
|
alias uuidu="uuid | tr '[:lower:]' '[:upper:]'"
|
||||||
alias uuidl=uuid
|
alias uuidl=uuid
|
||||||
elif _command_exists uuidgen; then # macOS/BSD
|
elif _command_exists uuidgen; then # macOS/BSD
|
||||||
alias uuidu="uuidgen"
|
alias uuidu="uuidgen"
|
||||||
alias uuid="uuidgen | tr '[:upper:]' '[:lower:]'" # because upper case is like YELLING
|
alias uuid="uuidgen | tr '[:upper:]' '[:lower:]'" # because upper case is like YELLING
|
||||||
alias uuidl=uuid
|
alias uuidl=uuid
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -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