55 lines
1.2 KiB
Plaintext
55 lines
1.2 KiB
Plaintext
alias bashrc="vim ~/.bashrc"
|
|
alias aliasrc="vim ~/.aliasrc"
|
|
alias vimrc="vim ~/.vimrc"
|
|
|
|
alias ..="cd .."
|
|
alias ...="cd ../.."
|
|
|
|
# Colorize output
|
|
alias ls="ls --color=auto"
|
|
alias grep="grep --color=auto"
|
|
alias ip='ip --color'
|
|
|
|
alias l='ls -1'
|
|
alias ll='ls -lh'
|
|
alias lt='ls -lht'
|
|
alias la='ls -lha'
|
|
alias lta='ls -lhat'
|
|
|
|
# Safety
|
|
alias rm='rm -I --preserve-root'
|
|
alias mv='mv -iv'
|
|
alias cp='cp -iv'
|
|
alias ln='ln -i'
|
|
alias mkdir='mkdir -pv'
|
|
alias chown='chown --preserve-root'
|
|
alias chmod='chmod --preserve-root'
|
|
alias chgrp='chgrp --preserve-root'
|
|
|
|
alias lgrep='l . | grep'
|
|
alias lagrep='la . | grep'
|
|
|
|
# Pretty print path variables
|
|
alias path='echo -e ${PATH//:/\\n}'
|
|
|
|
alias df='df -kTh'
|
|
|
|
alias fzfpac="pacman -Slq | fzf -m --preview 'pacman -Si {1}' | xargs -ro sudo pacman -S"
|
|
|
|
alias vi='vim'
|
|
alias py='python'
|
|
alias r5rs-repl='plt-r5rs --no-prim'
|
|
alias cfg='/usr/bin/git --git-dir=/home/h/.cfg/ --work-tree=/home/h'
|
|
|
|
alias tmuxl='tmux list-sessions'
|
|
alias tmuxs='tmux new-session -s'
|
|
alias tmuxk='tmux kill-session -t'
|
|
|
|
alias lm='xbacklight -set'
|
|
alias bat='check-battery-level'
|
|
alias now='date "+%I:%M %a %d %b"'
|
|
alias spot='ncspot'
|
|
alias todo='todoist'
|
|
alias weather='curl wttr.in'
|
|
alias zzz='systemctl suspend && exit'
|