Skip to content

ByScripts/fish-config

Repository files navigation

fish-config

Fish Shell configuration files

Abbreviations

Apache
a2reloadsudo service apache2 reload
a2restartsudo service apache2 restart
Artisan
aphp artisan
Apt-Get
arsudo apt-get autoremove
dugsudo apt-get dist-upgrade
isudo apt-get install
rsudo apt-get remove
usudo apt-get update
ugsudo apt-get upgrade
Bower
bbower
bibower install --save
bpbower prune
bubower update
Composer
ccomposer
cicomposer install
crcomposer require
crdcomposer require --dev
csusudo composer self-update
cucomposer update
cvcomposer validate
Git
ggit
ga.git add .
gagit add
gbgit branch
gbdgit branch -D
gcmgit commit -m
gcm!!!git add .; and git commit -m "Update"; and git push
gcogit checkout
gcobgit checkout -b
gigitignore
gmgit merge
gplgit pull
gpsgit push
gpsugit push -u origin master
gsgit status
gcgit clone
gdgit diff
Git Flow AVH
gfgit flow
gfigit flow init -d
gffgit flow feature
gffsgit flow feature start
gfffgit flow feature finish
gffpgit flow feature publish
gfftgit flow feature track
gffcogit flow feature checkout
gfrgit flow release
gfrsgit flow release start
gfrfgit flow release finish
gfrpgit flow release publish
gfrtgit flow release track
gfrcogit flow release checkout
gfbgit flow bugfix
gfbsgit flow bugfix start
gfbfgit flow bugfix finish
gfbpgit flow bugfix publish
gfbtgit flow bugfix track
gfbcogit flow bugfix checkout
gfhgit flow hotfix
gfhsgit flow hotfix start
gfhfgit flow hotfix finish
gfhpgit flow hotfix publish
gfhtgit flow hotfix track
gfhcogit flow hotfix checkout
LS
lls
NPM
ninpm install
nisnpm install --save
nisdnpm install --save-dev
nignpm install -g
npnpm prune
nlnpm list
nrnpm remove
nunpm update
RM
rmrf"rm -rf"
Symfony 2.x
s2php app/console
s2ccphp app/console cache:clear
s2ccpphp app/console cache:clear --env=prod
s2cctphp app/console cache:clear --env=test
s2gbphp app/console generate:bundle
s2gcphp app/console generate:controller
s2dgephp app/console doctrine:generate:entity
s2dscphp app/console doctrine:schema:create
s2dsuphp app/console doctrine:schema:update
s2dsvphp app/console doctrine:schema:validate
s2ddcphp app/console doctrine:database:create
Symfony 3.x
sphp bin/console
sccphp bin/console cache:clear
sccpphp bin/console cache:clear --env=prod
scctphp bin/console cache:clear --env=test
sgbphp bin/console generate:bundle
sgcphp bin/console generate:controller
sdgephp bin/console doctrine:generate:entity
sdscphp bin/console doctrine:schema:create
sdsuphp bin/console doctrine:schema:update
sdsvphp bin/console doctrine:schema:validate
sddcphp bin/console doctrine:database:create
Other
pgpgrep -l
psgps -ef \| grep
ccatpygmentize -g
add_to_pathset -U fish_user_paths $fish_user_paths
freebox_mountsudo mount -t cifs //mafreebox.freebox.fr/Disque\ dur /media/freebox -o user=freebox,uid=1000,gid=1000,rw,password=

Commands

__byscripts_ask

__byscripts_ask $question: Ask the user a $question and echoes the answer

__byscripts_blue

__byscripts_blue $string: Echoes $string in blue color

Arguments passed to __byscripts_blue are propagated to echo

__byscripts_confirm

__byscripts_confirm $string: Ask the user to confirm (output: $string [Yn])

Return 0 (Y) or 1 (N) status to use with control structure (if, while...)

__byscripts_green

__byscripts_green $string: Echoes $string in green color

Arguments passed to __byscripts_green are propagated to echo

__byscripts_red

__byscripts_red $string: Echoes $string in red color

Arguments passed to __byscripts_red are propagated to echo

__byscripts_spinner

__byscripts_spinner $pid: Display a spinner while the process with PID $pid is running

add_to_hosts

add_to_hosts <hostname>: Ask for an IP address (defaults to 127.0.0.1) and add hostname to /etc/hosts file.

create-domain

create-domain foobar.tld :

  • Create a foobar.tld.conf Apache file pointing to /var/www/foobar.tld
  • Create a foobar-tld MySQL database
  • Create a foobar-tld MySQL user
  • Grant all access on created database to created user

delete-domain

delete-domain foobar.tld : Reverse the create-domain process. Delete MySQL user, database and Apache config.

gitignore

gitignore app1 app2 ... >> .gitignore: Create a .gitignore from www.gitignore.io Get a list of applications with gitignore list or simply press TAB to get autocompletion

mkcd

mkcd foo/bar/baz: Runs mkdir foo/bar/baz then cd foo/bar/baz

mongochef-update

mongochef-update <url>:

  • Copy the current ~/Applications/MongoChef to ~/Applications/MongoChef-{timestamp}
  • Download MongoChef from <url>
  • Extract archive to ~/Applications/MongoChef

php-symlink-remove

Remove the symlinks and copy apache2/php.ini back to cli/php.ini and cgi/php.ini

php-symlink

Remove cli/php.ini and cgi/php.ini, and symlink apache2/php.ini instead

phpstorm-update

phpstorm-update <url>:

  • Copy the current ~/Applications/PhpStorm to ~/Applications/PhpStorm-{timestamp}
  • Download PhpStorm from <url>
  • Extract archive to ~/Applications/PhpStorm

symfo-acl

Set correct ACL for a Symfony app. Create app/cache and app/log if not exist, then set ACL to www-data and current user.

symfo3-acl

Set correct ACL for a Symfony 3 app. Create var if not exist, then set ACL to www-data and current user.

Prompt

       ┌─ The current path, shortened
       │             ┌─ Git current branch
       │             │      ┌─ Git status ( ✓ clean / …2 untracked / ●1 staged / ✚1 modified )
       │             │      │           ┌─ Current system user
       │             │      │           │     ┌─ Current system hostname
       │             │      │           │     │             ┌─ Time
       │             │      │           │     │             │             ┌─ A fish...
       ▼             ▼      ▼           ▼     ▼             ▼             ▼
┌─┤ ~/.c/fish ├──┤ master↑1…2●1✚1 ├──┤ who@hostname ├──┤ 22:18:24 ├──┤ ><(((°> ├───────────
└─▶ _

About

Fish Shell configuration files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published