Skip to content

Commit

Permalink
Add new aliases to .aliases file
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Garcia Rodriguez <[email protected]>
  • Loading branch information
BreakingPitt committed Oct 4, 2023
1 parent 22af30f commit be89a5e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .aliases
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# 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'

Expand All @@ -10,8 +13,11 @@ 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='exec ${SHELL} -l'
alias reload_shell='source ${HOME}/.zshrc'

# Tar - Create & compress .TAR file.
alias tar='tar cvf'
Expand Down

0 comments on commit be89a5e

Please sign in to comment.