2017-02-24 15:02:49 +00:00
|
|
|
# .bash_aliases
|
2019-02-22 13:39:34 +00:00
|
|
|
# (c) pcht 199x - 2019
|
2024-06-19 09:36:49 +00:00
|
|
|
alias ls='ls --color'
|
2017-05-23 12:20:35 +00:00
|
|
|
alias l='ls -lh'
|
2024-06-19 09:36:49 +00:00
|
|
|
alias la='ls -Alh'
|
|
|
|
alias lt='ls -lrt'
|
2017-02-06 09:58:58 +00:00
|
|
|
alias d='ls -al | egrep ^d'
|
2024-06-19 09:36:49 +00:00
|
|
|
alias dl='ls -al | grep -E "^[d|l]"'
|
|
|
|
alias ll='ls -al | grep -E ^l'
|
2017-02-24 15:02:49 +00:00
|
|
|
alias h=history
|
2017-05-10 13:04:26 +00:00
|
|
|
alias td='todo -c --force-colour --filter -done,+children | less -r'
|
2017-02-24 15:02:49 +00:00
|
|
|
alias tdall='todo --force-colour -A|less -r'
|
|
|
|
alias pp='python -mjson.tool'
|
2017-04-21 10:25:15 +00:00
|
|
|
alias cd='cd -P'
|
2024-06-19 09:36:49 +00:00
|
|
|
alias x='chmod +x'
|
|
|
|
alias nx='chmod -x'
|
|
|
|
alias m=make
|
|
|
|
|
|
|
|
# setfont
|
|
|
|
alias f32='setfont /usr/share/kbd/consolefonts/latarcyrheb-sun32.psfu.gz'
|
|
|
|
|
|
|
|
# clavier
|
|
|
|
alias us='setxkbmap -layout us,us -variant ,intl -option grp:rctrl_rshift_toggle'
|
2019-02-22 13:39:34 +00:00
|
|
|
|
2019-04-02 14:44:00 +00:00
|
|
|
# raccourcis
|
|
|
|
alias vmc='vim ~/.mailcap'
|
2019-02-22 13:39:34 +00:00
|
|
|
|
2024-06-19 09:36:49 +00:00
|
|
|
# ldap
|
|
|
|
alias lds=ldapsearch_dalembert
|
2019-04-02 14:44:00 +00:00
|
|
|
|
|
|
|
# bash
|
|
|
|
alias sa='source ~/.bash_aliases'
|
|
|
|
alias va='vim ~/.bash_aliases'
|
2024-06-19 09:36:49 +00:00
|
|
|
alias sb='source ~/.bashrc'
|
2019-04-02 14:44:00 +00:00
|
|
|
alias vb='vim ~/.bashrc'
|
|
|
|
|
2019-04-05 10:26:46 +00:00
|
|
|
# dirs
|
|
|
|
alias cb='cd ~/bin'
|
2024-06-19 09:36:49 +00:00
|
|
|
alias cdoc='cd ~/docs-braque'
|
2019-04-05 10:26:46 +00:00
|
|
|
alias cdot='cd ~/dotfiles'
|
|
|
|
alias csrc='cd ~/src'
|
|
|
|
alias csuck='cd ~/src/suckless/'
|
2024-06-19 09:36:49 +00:00
|
|
|
alias cmpv='cd ~/.config/mpv'
|
|
|
|
alias cserv='cd ~/services'
|
|
|
|
|
|
|
|
# symblinks
|
|
|
|
# find all symblink what link to $1
|
|
|
|
alias revln='find . -xdev -type l -exec echo -n "{} -> " \; -exec readlink {} \; 2>/dev/null | grep'
|
|
|
|
|
|
|
|
# run-mailcap
|
|
|
|
# alias see=run-mailcap
|
|
|
|
# alias seed='run-mailcap --norun --debug'
|
|
|
|
alias edit='run-mailcap --action=edit'
|
|
|
|
|
|
|
|
alias lf='/bin/ls -rt1|tail -1'
|
|
|
|
alias slf='run-mailcap "$(/bin/ls -rt1|tail -1)"'
|
|
|
|
alias vlf='edit "$(/usr/bin/ls -rt1|tail -1)"'
|
|
|
|
|
|
|
|
|
|
|
|
# vim
|
|
|
|
alias vr='vim ~/.vimrc'
|
|
|
|
alias vi=vim
|
2019-04-05 10:26:46 +00:00
|
|
|
|
2019-04-02 14:44:00 +00:00
|
|
|
# irssi
|
2024-06-19 09:36:49 +00:00
|
|
|
alias irssi='TERM=tmux irssi'
|
2019-04-02 14:44:00 +00:00
|
|
|
alias vic='vim ~/.irssi/config'
|
|
|
|
|
|
|
|
# mutt
|
2019-02-22 13:39:34 +00:00
|
|
|
alias cm='cd ~/.mutt'
|
2019-04-02 14:44:00 +00:00
|
|
|
alias vm='vim ~/.mutt/muttrc'
|
2024-06-19 09:36:49 +00:00
|
|
|
alias vma='vim ~/.mutt/muttrc-alias'
|
|
|
|
alias ou='offlineimap -a upmc'
|
|
|
|
alias og='offlineimap -a gmail'
|
2019-04-02 14:44:00 +00:00
|
|
|
|
|
|
|
# w3m
|
2024-06-19 09:36:49 +00:00
|
|
|
alias cw='cd ~/.w3m'
|
2019-04-02 14:44:00 +00:00
|
|
|
alias vw='vim ~/.w3m/config'
|
2024-06-19 09:36:49 +00:00
|
|
|
alias wb='w3m -B'
|
2019-04-02 14:44:00 +00:00
|
|
|
|
|
|
|
#newsboat
|
|
|
|
alias nb=newsboat
|
|
|
|
alias cnb='cd ~/.newsboat'
|
|
|
|
alias vnbu='vim ~/.newsboat/urls'
|
|
|
|
alias vnbc='vim ~/.newsboat/config'
|
|
|
|
|
2019-04-05 10:26:46 +00:00
|
|
|
#gcalcli
|
2024-06-19 09:36:49 +00:00
|
|
|
# alias gcm='gcalcli --calendar Weather agenda'
|
|
|
|
# alias gca='gcalcli agenda --military'
|
|
|
|
# alias gcall='gcalcli --calendar travail --calendar ecoles --calendar agenda --calendar CGT calw --military'
|
|
|
|
|
|
|
|
# mpv
|
|
|
|
alias vmpv='vim ~/.config/mpv/mpv.conf'
|
|
|
|
alias vmpvi='vim ~/.config/mpv/input.conf'
|
|
|
|
|
|
|
|
# systemctl user
|
|
|
|
alias sd='sudo systemctl'
|
|
|
|
alias sdu='systemctl --user'
|
|
|
|
|
|
|
|
# kubectl
|
|
|
|
alias k=kubectl
|
|
|
|
alias ka='kubectl api-resources'
|
|
|
|
alias kaf='kubectl apply -f'
|
|
|
|
alias kg='kubectl get'
|
|
|
|
alias kgn='kubectl get no'
|
|
|
|
alias kgp='kubectl get po'
|
|
|
|
alias kgd='kubectl get deploy'
|
|
|
|
alias kgs='kubectl get svc'
|
|
|
|
|
|
|
|
alias v=vagrant
|
|
|
|
alias vu='vagrant up'
|
|
|
|
alias vd='vagrant destroy'
|
|
|
|
|
|
|
|
|
|
|
|
# ssh
|
|
|
|
alias leger='ssh leger'
|
|
|
|
|
|
|
|
alias vs='vim ~/.ssh/config'
|
|
|
|
# alias chagall='ssh root@chagall'
|
|
|
|
# alias dhcpd='ssh root@dhcpd'
|
|
|
|
# alias heyward='ssh root@heyward'
|
|
|
|
# alias heywood='ssh root@heywood'
|
|
|
|
# alias manet='ssh root@manet'
|
|
|
|
# alias modemeca='ssh root@modemeca'
|
|
|
|
# alias poisson='ssh root@poisson'
|
|
|
|
# alias saturne='ssh root@saturne'
|
|
|
|
# alias uranus='ssh root@uranus'
|
|
|
|
# alias vauban='ssh root@vauban'
|
|
|
|
|
|
|
|
# alias americo='ssh root@americo'
|
|
|
|
# alias ivo='ssh root@ivo'
|
|
|
|
# alias mabe='ssh root@chagall'
|
|
|
|
|
|
|
|
# alias proxy='ssh root@proxy'
|
|
|
|
|
|
|
|
# tools
|
|
|
|
alias ccze='ccze -A'
|
|
|
|
|
|
|
|
alias youtube-dl=yt-dlp
|
|
|
|
|
|
|
|
# starship.rs
|
|
|
|
alias vss='vi ~/.config/starship.toml'
|
|
|
|
|
|
|
|
# go
|
|
|
|
alias gt="go test | _gotestcolored"
|
|
|
|
alias gtv="go test -v | _gotestcolored"
|
|
|
|
|
|
|
|
# go buffalo
|
|
|
|
# alias bt='buffalo test | _gotestcolored'
|
|
|
|
# alias btv='buffalo test -v | _gotestcolored | less'
|
|
|
|
# force no caching in test with -count=1
|
|
|
|
alias bt="go test -p 1 -tags test subscribe subscribe/actions subscribe/grifts subscribe/mailers"
|
|
|
|
alias btv='bt -v | _gotestcolored | less '
|
|
|
|
|
|
|
|
alias pm='sudo pacman'
|
2019-04-05 10:26:46 +00:00
|
|
|
|
2017-02-24 15:02:49 +00:00
|
|
|
# end .bash_aliases
|