-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.aliases
More file actions
26 lines (23 loc) · 1.2 KB
/
.aliases
File metadata and controls
26 lines (23 loc) · 1.2 KB
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
# Strip whitespace
alias wstrip="sed 's/[\n ]//g'"
alias fiddle="sudo tcpdump -s 1024 -l -A dst"
alias detach-monitor="xrandr --output DP1 --off"
alias d="docker compose"
alias dl="docker compose logs --tail=1000 -f"
alias ls="ls --color=auto"
alias ll="ls -lh"
alias la="ls -lha"
alias ai="sudo apt-get update && sudo apt-get install -y $@"
# better git diff.
alias gdiff="git diff --word-diff -w"
# recap on work done lately
alias recap="git log --all --oneline --no-merges [email protected]"
# what have i done today?
alias todayswork="git log --since=00:00:00 --all --no-merges --oneline [email protected]"
# make a changelog
alias changelog="git log --oneline --no-merges <last tag>..HEAD"
# analyze complicated logs
alias forensic="git log --graph --all --decorate --stat --date=iso"
# remove alread-merged remote branches
alias git_cleanup_remote="git fetch --all && git remote prune origin && git branch -r --merged | grep -v master | grep -v develop | sed 's/origin\///' | xargs -n 1 git push --delete origin"
alias safeclaude="docker run -it --network host -v $(pwd):/workspace -v devcontainer:/home/node -v /var/run/docker.sock:/var/run/docker.sock safeclaude claude --dangerously-skip-permissions"