# .bash_aliases # (c) pcht 199x - 2019 alias ls='ls --color' alias l='ls -lh' alias la='ls -Alh' alias lt='ls -lrt' alias d='ls -al | egrep ^d' alias dl='ls -al | egrep "^[d|l]"' alias ll='ls -alh' alias h=history alias td='todo -c --force-colour --filter -done,+children | less -RF' alias tdall='todo --force-colour -A|less -RF' alias pp='python -mjson.tool' alias cd='cd -P' 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' # raccourcis alias vmc='vim ~/.mailcap' # ldap alias lds=ldapsearch_dalembert # bash alias sa='source ~/.bash_aliases' alias va='vim ~/.bash_aliases' alias sb='source ~/.bashrc' alias vb='vim ~/.bashrc' # dirs alias cb='cd ~/bin' alias cdoc='cd ~/docs-braque' alias cdot='cd ~/dotfiles' alias csrc='cd ~/src' alias csuck='cd ~/src/suckless/' 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 lastf='/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 # irssi alias irssi='TERM=tmux irssi' alias vic='vim ~/.irssi/config' # mutt alias cm='cd ~/.mutt' alias vm='vim ~/.mutt/muttrc' alias vma='vim ~/.mutt/alias' # urlscan alias vurl='vim ~/.config/urlscan/config.json' # w3m alias vw='vim ~/.w3m/config' # fzf alias vf='vim $(fzf --preview="head -$LINES {}")' alias of='xdg-open "$(fzf --preview="head -$LINES {}")"' #newsboat alias nb=newsboat alias cnb='cd ~/.newsboat' alias vnbu='vim ~/.newsboat/urls' alias vnbc='vim ~/.newsboat/config' #gcalcli # 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" alias pm='sudo pacman' # end .bash_aliases