2021-01-29 00:08:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-03-17 21:52:05 +00:00
|
|
|
{{ ansible_header | comment }}
|
|
|
|
|
2021-01-29 00:08:39 +00:00
|
|
|
# enable color support of ls and also add handy aliases
|
|
|
|
if [ -x /usr/bin/dircolors ]; then
|
|
|
|
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
|
|
|
alias ls='ls --color=auto'
|
|
|
|
|
|
|
|
alias grep='grep --color=always'
|
|
|
|
alias fgrep='fgrep --color=always'
|
|
|
|
alias egrep='egrep --color=always'
|
|
|
|
fi
|
|
|
|
|
|
|
|
# some more ls aliases
|
|
|
|
alias ll='ls -alF'
|
|
|
|
alias la='ls -A'
|
|
|
|
alias l='ls -CF'
|
|
|
|
|
|
|
|
alias cd='cd -P'
|
|
|
|
alias ip='ip -c'
|
|
|
|
|
|
|
|
alias less='less -R'
|
|
|
|
|
|
|
|
alias toilet='toilet -f mono12 --rainbow'
|
|
|
|
|
|
|
|
alias startx='exec startx'
|
|
|
|
|
|
|
|
alias gst='git status -s'
|
|
|
|
|
|
|
|
alias proxy='ssh -q -C -N -D 8080'
|
|
|
|
alias wip='watch -c ip -c'
|
|
|
|
|
2021-03-17 21:45:37 +00:00
|
|
|
# Shortcuts to open ports
|
|
|
|
alias ldap_tealc="ssh -L 1636:tealc.adm.crans.org:636 tealc.adm.crans.org"
|
|
|
|
alias sam="ssh -L 8006:sam.adm.crans.org:8006 sam.adm.crans.org"
|
|
|
|
alias jack="ssh -L 8006:jack.adm.crans.org:8006 jack.adm.crans.org"
|
|
|
|
alias daniel="ssh -L 8006:daniel.adm.crans.org:8006 daniel.adm.crans.org"
|
|
|
|
|
|
|
|
alias vi=vim
|
|
|
|
alias cat=bat
|
|
|
|
|
2021-01-29 00:08:39 +00:00
|
|
|
# Add some emoji aliases
|
|
|
|
alias 🦇=bat
|
|
|
|
alias 🐈=cat
|
|
|
|
alias 🚆=sl
|
|
|
|
alias 🚂=sl
|
|
|
|
alias 🚅=sl
|
|
|
|
alias 💿=cd
|
2021-03-17 21:45:37 +00:00
|
|
|
|
2021-03-17 23:48:31 +00:00
|
|
|
alias 🐿️="cd /home/ynerant/PycharmProjects/SquirrelBattle && venv/bin/python main.py"
|