dotfiles/conf.d/zim/modules/jl-helper/init.zsh

63 lines
1.4 KiB
Bash
Raw Normal View History

2021-02-19 20:34:24 +00:00
#
# Personal aliases
#
2021-03-27 16:01:37 +00:00
#
# Admin
#
alias udvrld='sudo udevadm control --reload-rules && sudo udevadm trigger'
2021-02-19 20:34:24 +00:00
#
# Editors
#
2023-04-12 12:48:28 +00:00
alias vim='lvim' # redirect vim to nvim
2021-02-19 20:34:24 +00:00
2021-05-03 20:57:01 +00:00
#
# Mail, internet
#
alias mutt='neomutt -f ${HOME}/Mail/jeff.lance@mala.fr/inbox/'
alias neomutt='neomutt -f ${HOME}/Mail/jeff.lance@mala.fr/inbox/'
2021-02-19 20:34:24 +00:00
#
# Utilities
#
2023-04-04 09:38:34 +00:00
alias ip='ip -c' # ip address
# alias ls='lsd' # pretty ls
2021-02-19 20:34:24 +00:00
alias md='mkdir -p' # mkdir alias
alias open='xdg-open' # open files
2023-04-04 09:38:34 +00:00
alias pips='pip_search' # pip search tool
alias rs='rsync -Pavzl' # rsync shortcut
2021-05-27 19:31:12 +00:00
alias t='tmux' # tmux
alias ta='t a -t' # tmux attach to a session
alias tls='t ls' # tmux list sessions
2023-04-04 09:38:34 +00:00
alias tvs='transcode-video --scan' # tmux new session
2021-05-27 19:31:12 +00:00
alias tn='t n -t' # tmux new session
2021-03-27 16:01:37 +00:00
alias xcolor='xcolor | xclip -i' # xcolor
2023-04-04 09:38:34 +00:00
alias yd='yt-dlp' # yt-dlp best download
2021-02-19 20:34:24 +00:00
#
# Shortcuts
#
2021-03-27 16:01:37 +00:00
hash -d crs="${HOME}/Cours" # cours
2021-02-19 20:34:24 +00:00
hash -d doc="${HOME}/Documents" # documents
2021-03-03 09:37:37 +00:00
hash -d dot="${HOME}/dotfiles" # dotfiles
2021-02-19 20:34:24 +00:00
#
# Environment
#
# interactive comments
setopt interactivecomments
bindkey '^R' history-incremental-search-backward