-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaliases
More file actions
27 lines (22 loc) · 1021 Bytes
/
aliases
File metadata and controls
27 lines (22 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Aliases
alias generate-ctags='ctags -R --exclude=.git --exclude=tmp --exclude=.bundle --exclude=coverage --exclude=public --exclude=log --exclude=vendor --exclude=doc .'
alias sha256sum='shasum --algorithm 256'
alias lsa='eza -la'
# Pretty print the path
alias path='echo $PATH | tr -s ":" "\n"'
# Podman
alias podman-stop-all='podman stop $(podman ps -a -q)'
alias podman-stop-running='podman stop $(podman ps -q)'
alias podman-remove-exited='podman rm -v $(podman ps -a -q -f status=exited)'
alias podman-remove-dangling='podman rmi $(podman images -f "dangling=true" -q)'
alias podman-remove-untagged='podman rmi $(podman images | grep "^<none>" | awk "{print $3}")'
alias podman-remove-stopped='podman rm $(podman ps -qa)'
alias podman-gc='podman system prune --volumes'
# git
alias gco='git checkout'
alias gcom='git checkout "$(git-default-branch)"'
alias gst='git status'
alias gupc='git pull --rebase && git-delete-merged'
alias ggpush='git push origin "$(git_current_branch)"'
# rg
alias rg='rg --hidden'