Commit d74fc706 authored by François Magimel's avatar François Magimel
Browse files

Dotfiles / bash: add aliases

parents
#
# ~/.bash_aliases
#
# Linux commands
alias beep_off='xset b off'
alias grep='grep --color=auto'
alias grop='grep -irnH'
alias ll='ls -l'
alias ls='ls --color=auto'
alias mkdir='mkdir -p'
alias mv='mv -i'
alias rm='rm -i'
alias sshX='ssh -XYC'
alias batterie='acpi'
alias temperature='sensors' # https://wiki.archlinux.org/index.php/Lm_sensors
#alias rsync='rsync -avP' # -rptgoDPv
alias periph='watch -n1 "dmesg | tail -f"'
alias virus="sudo clamscan -r > $HOME/scan.log 2> $HOME/scan.err; echo 'EOS' >> $HOME/scan.log"
alias disque="sudo smartctl -a"
alias zicme='pax11publish -e -r'
# keyboard
alias azer='setxkbmap fr bepo'
alias bépo='setxkbmap fr oss'
alias qwerty='setxkbmap fr oss'
alias get_config_keyboard="setxkbmap -query | grep layout | awk '{ print $2; }'"
alias guillemet='echo "« »"'
# Internet
alias ethernet='sudo systemctl restart dhcpcd@enpXsY'
alias wifing='sudo wifi-menu wlpXsY'
alias wifica='cd /etc/netctl && sudo netctl start WIFI && cd -'
alias weather='curl wttr.in/toulouse'
# brightness
alias bright_up='sudo tee /sys/class/backlight/intel_backlight/brightness <<< $(echo `cat /sys/class/backlight/intel_backlight/brightness | xargs -I {} expr {} + 20 \* {} / 100`)'
alias bright_dn='sudo tee /sys/class/backlight/intel_backlight/brightness <<< $(echo `cat /sys/class/backlight/intel_backlight/brightness | xargs -I {} expr {} - 20 \* {} / 100`)'
# languages
alias ocaml='rlwrap ocaml'
alias mdeploy='mvn clean package jboss-as:deploy -DskipTests=true'
alias hsqlServer='mvn exec:java -Dexec.mainClass="org.hsqldb.Server" -Dexec.args="-database.0 file:target/data/blogEE"'
alias hsqlView='mvn exec:java -Dexec.mainClass="org.hsqldb.util.DatabaseManager"'
alias rmpyc='find . -name "*.pyc" -exec rm {} \;'
# git
alias gsl='git shortlog -nsw -e' ## who contributed how much
# troll
alias vmi='echo "
__ __ __ __ __
/\ \ / / /\ \ /\ -./ \
\ \ \ / \ \ \ \ \ \-./\ \
\ \_/ \ \_\ \ \_\ \ \_\
\/_/ \/_/ \/_/ \/_/
"'
alias ivm=vmi
alias ms=ls
alias pony='echo -e "
[0m
$\$
$\$
$\$ ▄▄▀▀▀▀▀▀▀▄▄ 
$\$ ▄▀▄▀▀▀▀▀▀▀▀▀▀▀▄ 
$\$ ▄▄▄▄▀▀▀▄▄▀▀▀▀▀▄▀▄ 
$\$ ▄▀▄▀▀▄▄▀▄▀▀▄▀▀▀▄▀▄ 
▄▀▄▀▄▄▀▀▄▄▀▄▀▀▀▄▄▄ 
▄▀▄▀▄▀▄▀▄▄▀▄▄▄▄▀▀▀▀ 
▄▀▀▀▄▄▀▀▀▀▀▀▀▀▄▄▀▀▀ 
▄▄▀▄▀▄▄▄▀▀▄▀▀▄▄▀▀▀ 
▄▄▀▄▀▀▄▄▀▄▀▀▀▄▄▀ ▄▀▀▀▄ 
▄▀▄▀▀▄▄▀▀▄▀▀▀▄ ▄▄▀▄▄▀▀
▀▄▀▄▀▀▀▀▀▀▀▀▀▄ ▄▀▀▄▀▀▀▀
▀▀▀▀▀▀▄▀▀▀▄ ▄▄▄▄▄▀▀▀▀▀▀▀ 
▄▄▀▀▄▀▄▄▄▄▀▀▄▀▀▄▀ 
▄▀▄▄▀▀▀▀▀▀▀▀▀▀▀▀▄ 
▄▄▄▀▀▀▀▀▀▀▀▄▀▀▀▄ 
▄▀▀▀▀▀▀▀▀▄▀▀▀▄ 
▄▀▀▄▀▄▀▀▀▀▀▀▀▀▀▄ 
▄▄▄▄▀▄ ▄▄▀▄▀▀▄ 
▄▄▄▄▀▀▄ ▄▄▀▄▄▀▀▄ 
▄▀▀▄▄▀▀▄ ▄▄▀▄▄▀▀▄ 
▄▄▄▄▄▀▀▀▄ ▄▄▄▄▄▀▀▀▄ 
▀▀▄▄▀▄▀▄▀ ▀▀▀▄▄▀▄▀▄ 
▀▀▀▀▀▀ ▀▀▀▀▀▀ 
"'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment