-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.aliases
38 lines (32 loc) · 786 Bytes
/
.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
# aliases I use everytime
# ----
alias dotfiles="/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME""
alias cat="bat --theme Dracula"
alias t=tmux
alias g=git
alias k=kubectl
alias e=$EDITOR
alias ls="eza --icons"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias cdc="cd $HOME/src/github.com/vaaleyard/"
# ----
# upload files
ix() {
curl -sF f:1='<-' ix.io < "$@"
}
# iotek - txt file upload
io() {
curl -sT- https://p.iotek.org < "$@"
}
### uguu - txt/images upload only for 24 hours
uguu() {
for i in "$@"; do
curl -sS -F files[]=@"$i" "https://uguu.se/upload.php" | jq .files[0].url
done
}
# ----
# useful stuff
# Show the most used commands
top10() { history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}' | sort -rn | head; }