dotfiles/dot_zsh_aliases

102 lines
3.4 KiB
Plaintext
Raw Normal View History

2019-03-01 08:17:42 +00:00
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
#
2019-07-18 09:55:54 +00:00
# Git, dotfiles, ripgrep, Node.JS
2019-03-01 08:17:42 +00:00
alias gcls='git clone --depth 1 --recurse-submodules'
alias cm='chezmoi'
alias grep='rg'
alias npmlist='npm list -g --depth 0'
2019-07-18 09:55:54 +00:00
# Jira
alias jirasearch='issues'
2019-03-01 08:17:42 +00:00
alias toollist="jira jql \"project = 'Internal Tooling'\""
alias backlogs="jira jql \"status = New AND project IN (CICD, TOOL) AND Created > -2w ORDER BY Priority DESC\""
2019-07-18 09:55:54 +00:00
alias bakclogs='backlogs'
alias lastissues='jira jql "project IN (CICD, TOOL) AND Created > -2w ORDER BY Created DESC, Priority DESC"'
2019-05-20 07:24:42 +00:00
alias workingon="jira jql \"assignee = currentUser() AND resolution = Unresolved AND status not in ('In Review', 'Done', 'In Testing', 'Waiting For Build') OR QA = currentUser() AND status = 'In Testing' ORDER BY updated DESC\""
2019-07-18 09:55:54 +00:00
alias newissues="jira jql \"project IN (CICD, TOOL) AND Created > -2w AND resolution = Unresolved AND status not in ('In Progress') ORDER BY Created DESC, Priority DESC\""
2019-08-13 13:32:47 +00:00
alias n='newissues'
2019-03-01 08:17:42 +00:00
alias backlog=toollist
2019-07-18 09:55:54 +00:00
alias bakclog='backlog'
2019-03-01 09:45:50 +00:00
alias b='backlog'
2019-03-01 12:34:54 +00:00
alias mybacklog="jira my-issues && asana"
alias mb='mybacklog'
alias myissues='mb'
alias me='mb'
alias j='jira open'
2019-07-18 09:55:54 +00:00
# News
2019-03-01 12:34:54 +00:00
alias hack='hacker'
alias crypto='curl rate.sx'
2019-07-18 09:55:54 +00:00
2019-08-09 02:36:12 +00:00
# Twitter
alias twitter='\t'
alias tsearch='twitter search all'
alias tsearchfav='twitter search favorites'
alias tsearchtimeline='twitter search timeline'
# Search
alias ddg='ddgr'
alias goo='googler'
alias se='sr -elvi'
alias engines='sr -elvi'
2019-07-18 09:55:54 +00:00
# Events
alias agenda='calendar'
alias mails="gmail && gmail2"
alias mailperso="gmail2"
alias mailpro="gmail"
2019-08-16 13:01:45 +00:00
# Viewing files
alias cat='bat'
2019-07-18 09:55:54 +00:00
# To do / Done
2019-07-20 10:10:13 +00:00
#alias done='task_done'
2019-07-18 09:55:54 +00:00
# Management / Security / SSH / SSL
2019-07-29 08:17:42 +00:00
alias mgmt='ssh $(whoami)@management.collibra.com -i ~/.ssh/id_ed25519'
2019-07-18 09:55:54 +00:00
alias m='mgmt'
alias tunnel='sshuttle --dns -r "$(whoami)@management.collibra.com" 0/0'
2019-07-29 08:17:42 +00:00
alias sshpub='cat ~/.ssh/id_ed25519.pub'
2019-07-18 09:55:54 +00:00
alias ssla="openssl x509 -alias -noout -in" # Usage : ssla <cert>
# Misc
alias h='cd $HOME'
2019-03-01 21:20:11 +00:00
alias diff='colordiff'
alias cp='cp -i' # confirmation before overwrite #
alias mv='mv -i' # confirmation before overwrite
alias df='df -H'
alias du='du -ch'
alias headers='curl -I --compress' # Find out if remote server supports gzip / mod_deflate or not #
alias hist='history'
alias path='echo -e ${PATH//:/\\n}' # Explode and display current PATH
alias ping='ping -c 5' # Stop after sending count ECHO_REQUEST packets
alias p='ps -ef | grep -i ' # Show matching processes. Usage : p <process name>
alias root='sudo -i'
alias s=ls
alias sl=ll
alias v=vi
2019-05-21 11:14:51 +00:00
alias ls='lsd'
2019-06-18 08:47:12 +00:00
alias pip='pip3'
2019-06-18 08:57:44 +00:00
alias c='cat'
2019-07-22 07:50:20 +00:00
alias x='extract'
alias current_year='`echo date +"%Y"`'
2019-08-06 12:47:25 +00:00
alias meteo='weather'
2019-08-08 12:17:06 +00:00
alias learnmore="apropos . | sort --random-sort | awk 'NR == 1 {print$1}' | cut -d'(' -f 1 | xargs man"
2019-08-08 12:35:18 +00:00
alias biggerthan10='biggerthan 10M'
2019-06-18 08:57:44 +00:00
2019-03-01 08:17:42 +00:00
# Show/hide hidden files in Finder
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
alias hide="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
# Hide/show all desktop icons (useful when presenting)
alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder"
alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder"
# Flush Directory Service cache
alias flush="dscacheutil -flushcache && killall -HUP mDNSResponder"
2019-06-18 08:47:12 +00:00
2019-07-18 09:55:54 +00:00
# This is the end ;( ... for now ;D