114 lines
3.8 KiB
Plaintext
114 lines
3.8 KiB
Plaintext
# Example aliases
|
|
# alias zshconfig="mate ~/.zshrc"
|
|
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
|
#
|
|
|
|
# Git, dotfiles, ripgrep, Node.JS
|
|
alias gcls='git clone --depth 1 --recurse-submodules'
|
|
alias cm='chezmoi'
|
|
alias grep='rg'
|
|
alias npmlist='npm list -g --depth 0'
|
|
|
|
# Jira
|
|
alias jirasearch='issues'
|
|
alias cicdlist="jira issue jql \"project = 'CICD'\""
|
|
alias backlogs="jira issue jql \"status = New AND project IN (CICD) AND Created > -2w ORDER BY Priority DESC\""
|
|
alias bakclogs='backlogs'
|
|
alias lastissues='jira issue jql "project IN (CICD) AND Created > -2w ORDER BY Created DESC, Priority DESC"'
|
|
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\""
|
|
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\""
|
|
alias n='newissues'
|
|
alias backlog=cicdlist
|
|
alias bakclog='backlog'
|
|
alias b='backlog'
|
|
alias mybacklog="jira my-issues && asana"
|
|
alias mb='mybacklog'
|
|
alias myissues='mb'
|
|
alias me='mb'
|
|
alias j='jira open'
|
|
|
|
# News
|
|
alias hack='hacker'
|
|
alias crypto='curl rate.sx'
|
|
|
|
# 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'
|
|
|
|
# Events
|
|
alias agenda='calendar'
|
|
alias mails="gmail && gmail2"
|
|
alias mailperso="gmail2"
|
|
alias mailpro="gmail"
|
|
|
|
# Viewing files
|
|
alias cat='bat --style=plain --color "always"'
|
|
alias preview="fzf --preview 'bat --color \"always\" --style=plain {}'"
|
|
alias markdown='pandoc README.md | lynx -stdin -dump'
|
|
|
|
# To do / Done
|
|
#alias done='task_done'
|
|
|
|
# Management / Security / SSH / SSL
|
|
alias mgmt='ssh $(whoami)@management.collibra.com -i ~/.ssh/id_ed25519'
|
|
alias m='mgmt'
|
|
alias tunnel='sshuttle --dns -r "$(whoami)@management.collibra.com" 0/0'
|
|
alias sshpub='cat ~/.ssh/id_ed25519.pub'
|
|
alias ssla="openssl x509 -alias -noout -in" # Usage : ssla <cert>
|
|
|
|
# Network
|
|
alias ip='echo $(curl ident.me 2>/dev/null)'
|
|
alias ipinfo='curl "ipinfo.io/"$(ip)'
|
|
|
|
# Misc
|
|
|
|
alias h='cd $HOME'
|
|
alias diff='colordiff'
|
|
alias cp='cp -i' # confirmation before overwrite #
|
|
alias mv='mv -i' # confirmation before overwrite
|
|
alias df='df -H'
|
|
alias du='ncdu --color dark -rr -x --exclude .git --exclude node_modules'
|
|
#alias du='du -ch'
|
|
alias weather='weather "?lang=fr&"'
|
|
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='prettyping -c 5 --nolegend' # 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
|
|
alias ls='lsd'
|
|
alias pip='pip3'
|
|
alias c='cat'
|
|
alias x='extract'
|
|
alias current_year='`echo date +"%Y"`'
|
|
alias learnmore="apropos . | sort --random-sort | awk 'NR == 1 {print$1}' | cut -d'(' -f 1 | xargs man"
|
|
alias biggerthan10='biggerthan 10M'
|
|
alias latency='curl cheat.sh/latency'
|
|
alias moon='curl "wttr.in/Moon?lang=fr"'
|
|
alias lune='moon'
|
|
alias help='tldr'
|
|
|
|
# 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"
|
|
|
|
# This is the end ;( ... for now ;D
|