Update aliases
This commit is contained in:
parent
f4198fefc7
commit
971c09083b
1 changed files with 4 additions and 13 deletions
|
@ -1,26 +1,20 @@
|
||||||
#########################################
|
#########################################
|
||||||
# Aliases #
|
# Aliases #
|
||||||
#########################################
|
#########################################
|
||||||
|
|
||||||
#alias sudo="sudo "
|
|
||||||
alias ws="cd ~/workspace"
|
|
||||||
|
|
||||||
alias open="xdg-open"
|
alias open="xdg-open"
|
||||||
|
alias gitroot='cd $(git rev-parse --show-toplevel)'
|
||||||
|
|
||||||
alias dc-up="docker-compose up"
|
alias dc-up="docker-compose up"
|
||||||
alias dc-upd="docker-compose up -d"
|
alias dc-upd="docker-compose up -d"
|
||||||
alias dc-down="docker-compose down"
|
alias dc-down="docker-compose down"
|
||||||
|
alias dc-clearmysql='find $(git rev-parse --show-toplevel)/docker/lib/mysql -mindepth 1 -maxdepth 1 -not -name '.gitkeep' -exec rm -rf "{}" \;'
|
||||||
alias dss-s="docker-sync-stack start"
|
alias dc-rswpass='mysql --host=127.0.0.1 -P 3305 -u application -papplication -e "UPDATE wp_users SET user_pass='$(php ~/workspace/php-dev-tools/wpass/build/wpass.phar asdf1234)'" application'
|
||||||
|
|
||||||
# Mirons docker init script
|
# Mirons docker init script
|
||||||
alias docker-init="bash <(curl -s https://raw.githubusercontent.com/micron/docker-setup/master/init.sh)"
|
alias docker-init="bash <(curl -s https://raw.githubusercontent.com/micron/docker-setup/master/init.sh)"
|
||||||
|
|
||||||
# Quick install script for projects
|
# Quick install script for projects
|
||||||
alias krinstall="echo '###=== NodeJS ===###' && npm install && echo '###=== Bower ===###' && bower install && echo '###=== Composer ===###' && composer install && echo '###=== Finished ===###'"
|
alias krinstall="echo '###=== NodeJS ===###' && npm install && echo '###=== Composer ===###' && composer install && echo '###=== Finished ===###'"
|
||||||
|
|
||||||
# Quickly ZIP and Delete on enter press
|
|
||||||
alias quickzip='ALEXAFILE="${PWD##*/}_$(cat /dev/urandom | env LC_CTYPE=C tr -cd 'a-f0-9' | head -c 32).zip"; zip ${ALEXAFILE} -r * && echo "Press enter to delete file." && read && rm ${ALEXAFILE}'
|
|
||||||
|
|
||||||
copydl() {
|
copydl() {
|
||||||
|
|
||||||
|
@ -55,9 +49,6 @@ ytplaylist(){
|
||||||
alias dl-wpcli="wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar"
|
alias dl-wpcli="wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar"
|
||||||
alias dl-wp="curl https://wordpress.org/latest.tar.gz | tar -xzv"
|
alias dl-wp="curl https://wordpress.org/latest.tar.gz | tar -xzv"
|
||||||
|
|
||||||
alias gitroot='cd $(git rev-parse --show-toplevel)'
|
|
||||||
alias dc-clearmysql='find $(git rev-parse --show-toplevel)/docker/lib/mysql -mindepth 1 -maxdepth 1 -not -name '.gitkeep' -exec rm -rf "{}" \;'
|
|
||||||
|
|
||||||
alias gpgcb="xsel --clipboard | sed 's/^ *//g' | gpg2 -d"
|
alias gpgcb="xsel --clipboard | sed 's/^ *//g' | gpg2 -d"
|
||||||
|
|
||||||
if [ -n "$(command -v vimx)" ]; then
|
if [ -n "$(command -v vimx)" ]; then
|
||||||
|
|
Loading…
Reference in a new issue