Fish Shell configuration files
Apache | |
---|---|
a2reload | sudo service apache2 reload |
a2restart | sudo service apache2 restart |
Artisan | |
a | php artisan |
Apt-Get | |
ar | sudo apt-get autoremove |
dug | sudo apt-get dist-upgrade |
i | sudo apt-get install |
r | sudo apt-get remove |
u | sudo apt-get update |
ug | sudo apt-get upgrade |
Bower | |
b | bower |
bi | bower install --save |
bp | bower prune |
bu | bower update |
Composer | |
c | composer |
ci | composer install |
cr | composer require |
crd | composer require --dev |
csu | sudo composer self-update |
cu | composer update |
cv | composer validate |
Git | |
g | git |
ga. | git add . |
ga | git add |
gb | git branch |
gbd | git branch -D |
gcm | git commit -m |
gcm!!! | git add .; and git commit -m "Update"; and git push |
gco | git checkout |
gcob | git checkout -b |
gi | gitignore |
gm | git merge |
gpl | git pull |
gps | git push |
gpsu | git push -u origin master |
gs | git status |
gc | git clone |
gd | git diff |
Git Flow AVH | |
gf | git flow |
gfi | git flow init -d |
gff | git flow feature |
gffs | git flow feature start |
gfff | git flow feature finish |
gffp | git flow feature publish |
gfft | git flow feature track |
gffco | git flow feature checkout |
gfr | git flow release |
gfrs | git flow release start |
gfrf | git flow release finish |
gfrp | git flow release publish |
gfrt | git flow release track |
gfrco | git flow release checkout |
gfb | git flow bugfix |
gfbs | git flow bugfix start |
gfbf | git flow bugfix finish |
gfbp | git flow bugfix publish |
gfbt | git flow bugfix track |
gfbco | git flow bugfix checkout |
gfh | git flow hotfix |
gfhs | git flow hotfix start |
gfhf | git flow hotfix finish |
gfhp | git flow hotfix publish |
gfht | git flow hotfix track |
gfhco | git flow hotfix checkout |
LS | |
l | ls |
NPM | |
ni | npm install |
nis | npm install --save |
nisd | npm install --save-dev |
nig | npm install -g |
np | npm prune |
nl | npm list |
nr | npm remove |
nu | npm update |
RM | |
rmrf | "rm -rf" |
Symfony 2.x | |
s2 | php app/console |
s2cc | php app/console cache:clear |
s2ccp | php app/console cache:clear --env=prod |
s2cct | php app/console cache:clear --env=test |
s2gb | php app/console generate:bundle |
s2gc | php app/console generate:controller |
s2dge | php app/console doctrine:generate:entity |
s2dsc | php app/console doctrine:schema:create |
s2dsu | php app/console doctrine:schema:update |
s2dsv | php app/console doctrine:schema:validate |
s2ddc | php app/console doctrine:database:create |
Symfony 3.x | |
s | php bin/console |
scc | php bin/console cache:clear |
sccp | php bin/console cache:clear --env=prod |
scct | php bin/console cache:clear --env=test |
sgb | php bin/console generate:bundle |
sgc | php bin/console generate:controller |
sdge | php bin/console doctrine:generate:entity |
sdsc | php bin/console doctrine:schema:create |
sdsu | php bin/console doctrine:schema:update |
sdsv | php bin/console doctrine:schema:validate |
sddc | php bin/console doctrine:database:create |
Other | |
pg | pgrep -l |
psg | ps -ef \| grep |
ccat | pygmentize -g |
add_to_path | set -U fish_user_paths $fish_user_paths |
freebox_mount | sudo mount -t cifs //mafreebox.freebox.fr/Disque\ dur /media/freebox -o user=freebox,uid=1000,gid=1000,rw,password= |
__byscripts_ask $question
: Ask the user a $question
and echoes the answer
__byscripts_blue $string
: Echoes $string
in blue color
Arguments passed to __byscripts_blue
are propagated to echo
__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 $string
: Echoes $string
in green color
Arguments passed to __byscripts_green
are propagated to echo
__byscripts_red $string
: Echoes $string
in red color
Arguments passed to __byscripts_red
are propagated to echo
__byscripts_spinner $pid
: Display a spinner while the process with PID $pid
is running
add_to_hosts <hostname>
: Ask for an IP address (defaults to 127.0.0.1) and add hostname
to /etc/hosts file.
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 foobar.tld
: Reverse the create-domain
process. Delete MySQL user, database and Apache config.
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 foo/bar/baz
: Runs mkdir foo/bar/baz
then cd foo/bar/baz
mongochef-update <url>
:
- Copy the current
~/Applications/MongoChef
to~/Applications/MongoChef-{timestamp}
- Download MongoChef from
<url>
- Extract archive to
~/Applications/MongoChef
Remove the symlinks and copy apache2/php.ini
back to cli/php.ini
and cgi/php.ini
Remove cli/php.ini
and cgi/php.ini
, and symlink apache2/php.ini
instead
phpstorm-update <url>
:
- Copy the current
~/Applications/PhpStorm
to~/Applications/PhpStorm-{timestamp}
- Download PhpStorm from
<url>
- Extract archive to
~/Applications/PhpStorm
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.
Set correct ACL for a Symfony 3 app.
Create var
if not exist, then set ACL to www-data
and current user.
┌─ 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 ├──┤ ><(((°> ├───────────
└─▶ _