dotfiles/.bash_aliases

150 lines
3.2 KiB
Bash
Raw Normal View History

2017-02-24 15:02:49 +00:00
# .bash_aliases
# (c) pcht 199x - 2019
2024-06-19 09:36:49 +00:00
alias ls='ls --color'
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-10-30 18:05:35 +00:00
alias dl='ls -al | egrep "^[d|l]"'
alias ll='ls -alh'
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-04-02 14:44:00 +00:00
# raccourcis
alias vmc='vim ~/.mailcap'
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
alias cm='cd ~/.mutt'
2019-04-02 14:44:00 +00:00
alias vm='vim ~/.mutt/muttrc'
2024-10-30 18:05:35 +00:00
alias vma='vim ~/.mutt/alias'
2019-04-02 14:44:00 +00:00
# w3m
alias vw='vim ~/.w3m/config'
2024-10-30 18:05:35 +00:00
# fzf
alias vf='vim $(fzf --preview="head -$LINES {}")'
alias of='xdg-open "$(fzf --preview="head -$LINES {}")"'
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"
alias pm='sudo pacman'
2019-04-05 10:26:46 +00:00
2017-02-24 15:02:49 +00:00
# end .bash_aliases