Oh boy, my time to shine:
mkd
- Create directory and immediatelycd
into itdei
-docker exec -i
dps
-docker ps
mdocker
- Switch to minikube’s docker contextn
-nvim
n.
-nvim .
Node package managers
Exampes use pnpm
but I have them for yarn
, npm
, and bun
too
pi
-pnpm install
pd
-pnpm run dev
fzf stuff
sdh
- Search home directory (directories, recursive)
Meme
fuckyou
-git push --force
nano
-nvim
Misc
createpgdb
- Create a postgres db on the given container with the given name
Usage: createpgdb "postgres container" "db name"
I have similar ones for dropdb
and pg_dump
. Here’s the command:
f() { local __user; if [ -z $3 ]; then __user=postgres; else __user=$3; fi; docker exec -i $1 createdb -U $__user $2; unset -f f; }; f'
Have you tried fzf and it’s history integration? Ctrl+R and youre fuzzy finding through your history. I don’t know how I lives without it