-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases.zsh
40 lines (30 loc) · 1.08 KB
/
aliases.zsh
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
39
40
# Easier navigation: .., ..., ...., ....., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
alias cdt='cd $(mktemp -d)'
# services
# alias weather='curl wttr.in/miami'
# zsh
alias reload='exec $SHELL'
# test
alias disk-write-speed='dd if=/dev/zero of=/var/tmp/wspeed.img bs=1G count=2 oflag=dsync; rm -vf /var/tmp/wspeed.img'
# ssh
alias sshu='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
alias scpu='scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
# clip copy
# alias pubkey-copy="cat ~/.ssh/id_ed25519.pub | tr -d '\n' | \xclip -selection clipboard"
alias xclip="xclip -selection clipboard"
# node
alias node-v8-version='node -p process.versions.v8'
# free
alias free='free -h'
# df
alias df='df -hTx squashfs'
# grub-install
alias grub-install-efi='sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck'
# grub-mkconfig
alias grub-mkconfig-default='sudo grub-mkconfig -o /boot/grub/grub.cfg'