Post #819597
2026-03-24 19:01 UTC
Those of you working in the CLI a lot - what are your favorite aliases that might be useful to others?
Some of mine:
- Better ls command: alias lsa='ls -lAFh'
- A command to drop/recreate/re-seed my Postgres DBs: alias dbnuke='bundle exec rake db:drop db:create db:migrate db:seed'
Replies (3)
-
@soulcutter@ruby.social 2026-03-24 19:05
@niclake duh for human-readable du comes to mind https://github.com/soulcutter/dotfiles/blob/master/oh-my-zsh/custom/filesystem.zsh
-
@agmcleod@mastodon.social 2026-03-24 19:10
@niclake My git aliases: [alias] co = checkout ci = commit st = status br = branch hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short rbc = rebase --continue ap = add -p rbi = rebase -i
-
@matt@keyboards.social 2026-03-25 23:55
@niclake A git alias i've been using for a long time: first-push = ! git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD) For pushing the branch the first time, when it would otherwise be rejected with an error of "The current branch xxx has no upstream branch."