Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 1.15 KB

readme.md

File metadata and controls

57 lines (45 loc) · 1.15 KB

A few helpful functions for fish

mostly for myself, but can be helpful for others aswell

Some notables

Docker

cleanDockerImages

Does what it says

dockerRemoveDangling

Does what it says

dockerUpdateAll

This runs through all your images and grabs the "latest" tagged version of them

dockerPsClean

This is used to get rid of any stale/exited images and clean the list, so that you can use the same name again

dockerStop
dockerStart
dockerRestart

These commands use either docker-compose, docker.sh (custom file you create to do various things, e.g build databases) and do their counterparts e.g. dockerStart will run build the image and stick it into daemon mode

dockerExec $0

e.g.
dockerExec app

This will launch sh or any program you specify on that container, e.g. docker app starter will run "starter" on app container, either docker-compose or standard docker

System

updateSys

This runs all the update commands for a mac (well all the ones I use,

  • brew update/upgrade
  • brew cask upgrade
  • mas outdated
  • zplug update

This also works on Arch it does the following

  • zplug update
  • yay (or puca) -Syu