-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
38 lines (28 loc) · 1.1 KB
/
.bash_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
27
28
29
30
31
32
33
34
35
36
37
38
# launch Ghidra
alias ghidra='~/Apps/ghidra/ghidraRun'
# take a nap (suspend the system)
alias nap='systemctl suspend'
# launch apktool
alias apktool='java -jar ~/Apps/apktool/apktool.jar'
# lanuch pwninit with a custom template
alias pwninit='~/Apps/pwninit/pwninit --template-path ~/.config/pwninit-template.py'
# get sorted disk usage for current working directory
alias gdu='du -shl * | sort -h'
# start firefox
alias ffp='firefox -private-window &'
# delete branches no longer on remote
# from: https://stackoverflow.com/questions/7726949/remove-tracking-branches-no-longer-on-remote
alias gitlodel='git fetch -p && for branch in $(git for-each-ref --format '\''%(refname) %(upstream:track)'\'' refs/heads | awk '\''$2 == "[gone]" {sub("refs/heads/", "", $1); print $1}'\''); do git branch -D $branch; done'
# remove tracking branches no longer on remote
alias gitredel='git remote prune origin'
# nvim
alias vim="nvim"
alias vi="nvim"
alias v="nvim"
# Python
alias py="python3"
alias p="python3"
alias py2="python2"
alias p2="python2"
# Search for a directory and cd into it
alias sd='cd $(find ~ -type d | fzf)'