-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
38 lines (34 loc) · 1.8 KB
/
.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
#***********************************************************************#
# Useful aliases #
#***********************************************************************#
alias l='ls -ahlpG'
alias ll='ls -ahlpG'
alias cl='clear'
alias ~='cd ~'
alias ..='cd ..'
alias grep='grep --color=always'
alias ps-grep='ps aux | grep'
alias path='echo $PATH | tr ":" "\n"'
alias alldone='say -v "Fred" -r 120 "All done" || say -v "Fred" -r 120 "Something went wrong"' # comand1 && alldone
#***********************************************************************#
# Zsh aliases #
#***********************************************************************#
alias re-source='verbose_resource=true && source ~/.zshrc && unset verbose_resource'
alias zrc='code ~/.zshrc'
#***********************************************************************#
# Git aliases #
#***********************************************************************#
alias s='git status'
# TODO: Show message to keep lines in the file that should be deleted
alias prune-merged='git branch --merged | grep -v "master" >/tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -d </tmp/merged-branches && rm /tmp/merged-branches'
alias master='git checkout master; git pull;'
alias bn='branch_name'
alias tir='tig refs'
alias git-ignore='git update-index --assume-unchanged'
alias git-ignored='git ls-files -v | grep "^[[:lower:]]"'
alias git-unignore='git update-index --no-assume-unchanged'
if [[ $verbose_resource ]]; then echo "SOURCED .aliases"; fi
# This should be the last line of the file
# For local changes
# Don't make edits below this
[ -f "$HOME/.aliases.local" ] && source "$HOME/.aliases.local"