-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zsh_aliases
41 lines (29 loc) · 1.01 KB
/
.zsh_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
39
40
41
# vi: filetype=bash
# zsh_aliases
#
# Maintained by Pedro Garcia Rodriguez <[email protected]>
# Website: http://www.pgarcia.es/
# Git - Nuke repository changes.
alias git_nuke='git clean -df && git reset --hard'
# Shell - Copy SSH publick key to clipboard.
alias copy_ssh_pub_key='pbcopy < $HOME/.ssh/id_ed25519.pub'
# Shell - Copy file interactive.
alias cp='cp -i'
# Shell - Delete .DS_Store files on current directory.
alias rm_ds_store='find . -name ".DS_Store" -type f -delete'
# Shell - Move file interactive.
alias mv='mv -i'
# Shell - Print each PATH entry on a separate line.
alias path='echo -e ${PATH//:/\\n}'
# Shell - Flush DNS cache.
alias reload_dns="dscacheutil -flushcache && sudo killall -HUP mDNSResponder"
# Shell - Reload shell.
alias reload_shell='source ${HOME}/.zshrc'
# Tar - Create & compress .TAR file.
alias tar='tar -cvf'
# Tar - Create & compress .ZIP file.
alias tar_zip='tar -cvzf'
# Tar - Uncompress .TAR file.
alias untar='tar -xvf'
# Tar - Uncompress .ZIP file.
alias untar_zip='tar -xvzf'