forked from simenandre/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
26 lines (25 loc) · 1.12 KB
/
.aliases
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
# Git aliases
alias git-unpushed='git log --branches --not --remotes --no-walk --decorate --oneline'
alias gb='git checkout -b'
alias gfr='git fetch upstream && git rebase upstream/main'
alias git-undo='git reset --soft HEAD~1'
alias git-clean-branches="git for-each-ref --format '%(refname:short)' refs/heads | grep -v 'master\|main' | xargs git branch -D"
# Generic / Random / Utility
alias rg="rg --hidden --glob '!.git' --glob '!node_modules'"
alias r='cd $REPOS/github.com/'
alias c='clear'
alias afk='pmset displaysleepnow'
alias dl="cd ~/Downloads"
alias l='ls -l'
alias todo='nt'
alias tasks="open 'obsidian://open?file=-%20Oppgaver'"
alias todos="mt ~/ghq/github.com/simenandre/notes/ && echo '\n\nÅpne i Obsidian: tasks'"
# alias docker-compose=podman-compose
alias today="open 'obsidian://advanced-uri?daily=true'"
alias tre='tree --gitignore'
alias timeliste="open 'https://tripletex.no/execute/updateHourlist?contextId=11208568'"
alias t="open 'https://tripletex.no/execute/updateHourlist?contextId=11208568'"
alias fork-cleaner="fork-cleaner --token $(cat ~/.secrets/github-token)"
alias vi="nvim"
alias vim="nvim"
alias v="nvim"