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-09-16 12:05:52 +00:00
alias cicdlist="jira issue jql \"project = 'CICD' AND resolution = Unresolved\""
2019-08-18 15:00:07 +00:00
alias backlogs="jira issue jql \"status = New AND project IN (CICD) AND Created > -2w ORDER BY Priority DESC\""
2019-07-18 09:55:54 +00:00
alias bakclogs='backlogs'
2020-02-22 15:31:41 +00:00
alias support="jira issue jql \"project in (CICD) AND (Created > -2w AND resolution = Unresolved AND (type = 'Engineering Incident' AND status not in ('Waiting for external information') OR type IN ('Engineering Request', 'Task', 'User Story') AND status in ('New', 'To be picked next')) OR resolution != Unresolved AND status = 'In Progress') ORDER BY key DESC\""
alias guardian="support"
2019-08-18 15:00:07 +00:00
alias lastissues='jira issue jql "project IN (CICD) AND Created > -2w ORDER BY Created DESC, Priority DESC"'
2020-02-22 15:31:41 +00:00
alias workingon="jira issue 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, priority DESC\""
2019-08-18 15:00:07 +00:00
alias newissues="jira issue jql \"project IN (CICD) 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-08-17 20:26:53 +00:00
alias backlog=cicdlist
2019-07-18 09:55:54 +00:00
alias bakclog='backlog'
2019-03-01 09:45:50 +00:00
alias b='backlog'
2019-08-18 15:32:08 +00:00
alias mybacklog="jira issue ls && asana"
2019-03-01 12:34:54 +00:00
alias mb='mybacklog'
alias myissues='mb'
alias me='mb'
2019-08-18 15:32:08 +00:00
alias j='jira issue open'
2019-07-18 09:55:54 +00:00
# News
2019-03-01 12:34:54 +00:00
alias hack='hacker'
2019-08-08 18:00:14 +00:00
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'
2020-02-22 15:31:41 +00:00
alias tweets='tsearch'
2019-08-09 02:36:12 +00:00
alias tsearchfav='twitter search favorites'
alias tsearchtimeline='twitter search timeline'
2019-08-15 08:03:27 +00:00
# Search
alias ddg='ddgr'
alias goo='googler'
2019-08-15 09:19:11 +00:00
alias se='sr -elvi'
alias engines='sr -elvi'
2019-08-15 08:03:27 +00:00
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
2019-08-17 12:07:21 +00:00
alias cat='bat --style=plain --color "always"'
2019-12-01 11:01:19 +00:00
alias preview="fzf --preview 'bat --color \"always\" --style=plain {}' --cycle "
2020-02-22 15:31:41 +00:00
alias markdown2='pandoc README.md | lynx -stdin -dump'
alias markdown='glow'
2019-08-17 13:53:20 +00:00
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>
2019-08-16 14:41:13 +00:00
# Network
alias ip='echo $(curl ident.me 2>/dev/null)'
alias ipinfo='curl "ipinfo.io/"$(ip)'
2019-07-18 09:55:54 +00:00
# Misc
alias h='cd $HOME'
2020-02-15 14:16:45 +00:00
alias bash="/usr/local/bin/bash"
2020-02-22 15:31:41 +00:00
alias diff='colordiff --side-by-side --ignore-space-change --width=200 --suppress-common-lines --recursive'
2019-03-01 21:43:03 +00:00
alias cp='cp -i' # confirmation before overwrite #
alias mv='mv -i' # confirmation before overwrite
2020-02-22 15:31:41 +00:00
alias rm='gomi'
2019-03-01 21:43:03 +00:00
alias df='df -H'
2019-08-16 22:24:10 +00:00
alias du='ncdu --color dark -rr -x --exclude .git --exclude node_modules'
#alias du='du -ch'
2019-08-17 13:37:28 +00:00
alias weather='weather "?lang=fr&"'
2019-03-01 21:43:03 +00:00
alias headers='curl -I --compress' # Find out if remote server supports gzip / mod_deflate or not #
alias hist='history'
2019-11-09 14:35:21 +00:00
alias music='baton'
2019-03-01 21:43:03 +00:00
alias path='echo -e ${PATH//:/\\n}' # Explode and display current PATH
2019-08-16 16:01:12 +00:00
alias ping='prettyping -c 5 --nolegend' # Stop after sending count ECHO_REQUEST packets
2019-03-01 21:43:03 +00:00
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'
2020-02-08 10:36:07 +00:00
alias tree='ls --almost-all --tree'
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'
2019-08-04 20:44:51 +00:00
alias current_year='`echo date +"%Y"`'
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-08-16 14:41:13 +00:00
alias latency='curl cheat.sh/latency'
2019-08-17 13:40:32 +00:00
alias moon='curl "wttr.in/Moon?lang=fr"'
2019-08-16 14:41:13 +00:00
alias lune='moon'
2019-08-16 22:30:25 +00:00
alias help='tldr'
2019-08-18 18:42:45 +00:00
alias systeminfo='neofetch'
alias monitoring='glances'
2019-09-19 14:36:55 +00:00
alias ':q'='exit'
2019-11-09 09:58:59 +00:00
alias irc='weechat'
2019-11-16 09:46:56 +00:00
alias trello='3llo'
2019-12-01 11:01:19 +00:00
alias mytracks='music me saved tracks'
alias unix='curl -L http://git.io/unix'
alias coffee="curl -L http://git.io/coffee"
alias hotcoffee="curl -sL git.io/hotcoffee | sh"
2019-12-01 17:39:47 +00:00
alias usernames="python3 $HOME/Code/sherlock/sherlock.py --rank --print-found"
2020-02-08 10:23:45 +00:00
alias checken="aspell check -d en"
alias checkfr="aspell check -d fr"
alias gw='./gradlew'
2020-02-22 15:31:41 +00:00
alias terraform_landscape='landscape'
2020-02-25 21:48:20 +00:00
alias tf='terraform'
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