26 lines
1.1 KiB
Bash
Executable File
26 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Misc
|
|
alias adhoc="ansible --one-line 127.0.0.1 -m"
|
|
alias ans='adhoc'
|
|
alias bash="/usr/local/bin/bash"
|
|
#alias date="gdate"
|
|
alias away='moro break 10 && coffee'
|
|
alias afk='away'
|
|
alias current_year='`echo date +"%Y"`'
|
|
alias headers='curl -I --compress' # Find out if remote server supports gzip / mod_deflate or not #
|
|
alias https='http --default-scheme=https' # useful alias stealed from a colleague. http is provided by httpie
|
|
alias path='echo -e ${PATH//:/\\n}' # Explode and display current PATH
|
|
alias p='ps -ef | grip ' # Show matching processes. Usage : p <process name>
|
|
alias root='sudo -i'
|
|
alias ':q'='exit'
|
|
alias current_hour='date +"%H:%M"'
|
|
alias current_time='current_hour'
|
|
# FIXME : register the alias only if browser is Chrome based (Google Chrome/Brave/etc)
|
|
alias meditate='browse chrome-extension://onjcfgnjjbnflacfbnjaapcbiecckilk/popup.html#fullscreen'
|
|
alias runhooks='pre-commit run -a'
|
|
alias tryhook='pre-commit try-repo .'
|
|
alias whatyear='current_year'
|
|
alias whathour='current_time'
|
|
alias whattime='whathour'
|