2020-04-07 22:24:30 +02:00
|
|
|
alias bashrc="vim ~/.bashrc"
|
|
|
|
alias aliasrc="vim ~/.aliasrc"
|
2020-12-03 12:00:52 +01:00
|
|
|
alias vimrc="vim ~/.vimrc"
|
2020-04-07 22:24:30 +02:00
|
|
|
|
2021-02-16 21:15:23 +01:00
|
|
|
# Navigation
|
|
|
|
|
2020-05-07 02:09:35 +02:00
|
|
|
alias ..="cd .."
|
2021-02-16 21:15:23 +01:00
|
|
|
alias .2="cd ../.."
|
|
|
|
alias .3="cd ../../.."
|
2020-05-07 02:09:35 +02:00
|
|
|
|
2020-08-18 18:22:50 +02:00
|
|
|
# Colorize output
|
2020-04-07 22:24:30 +02:00
|
|
|
alias ls="ls --color=auto"
|
|
|
|
alias grep="grep --color=auto"
|
2020-08-18 18:22:50 +02:00
|
|
|
alias ip='ip --color'
|
2020-04-07 22:24:30 +02:00
|
|
|
|
2021-08-31 14:25:24 +02:00
|
|
|
alias l="ls -1"
|
|
|
|
alias ll="ls -lh"
|
|
|
|
alias lt="ls -lht"
|
|
|
|
alias la="ls -lha"
|
|
|
|
alias lta="ls -lhat"
|
|
|
|
alias ld="ls -d */" # list directories
|
2020-12-03 12:00:52 +01:00
|
|
|
|
|
|
|
# Safety
|
|
|
|
alias rm='rm -I --preserve-root'
|
2020-12-10 14:26:33 +01:00
|
|
|
alias mv='mv -iv'
|
|
|
|
alias cp='cp -iv'
|
2020-12-03 12:00:52 +01:00
|
|
|
alias ln='ln -i'
|
2020-12-10 14:26:33 +01:00
|
|
|
alias mkdir='mkdir -pv'
|
2020-12-03 12:00:52 +01:00
|
|
|
alias chown='chown --preserve-root'
|
|
|
|
alias chmod='chmod --preserve-root'
|
|
|
|
alias chgrp='chgrp --preserve-root'
|
2020-04-07 22:24:30 +02:00
|
|
|
|
|
|
|
alias lgrep='l . | grep'
|
|
|
|
alias lagrep='la . | grep'
|
|
|
|
|
2020-10-18 16:12:08 +02:00
|
|
|
# Pretty print path variables
|
|
|
|
alias path='echo -e ${PATH//:/\\n}'
|
2021-04-25 00:24:50 +02:00
|
|
|
# Clipboard
|
2020-08-18 18:22:50 +02:00
|
|
|
|
2020-12-03 12:00:52 +01:00
|
|
|
alias df='df -kTh'
|
2021-04-25 00:24:50 +02:00
|
|
|
alias clip='xclip -sel clip'
|
2020-12-03 12:00:52 +01:00
|
|
|
|
2020-05-07 02:09:35 +02:00
|
|
|
alias fzfpac="pacman -Slq | fzf -m --preview 'pacman -Si {1}' | xargs -ro sudo pacman -S"
|
|
|
|
|
2020-04-07 22:24:30 +02:00
|
|
|
alias vi='vim'
|
|
|
|
alias py='python'
|
2020-11-02 18:09:18 +01:00
|
|
|
alias r5rs-repl='plt-r5rs --no-prim'
|
2020-04-07 22:24:30 +02:00
|
|
|
alias cfg='/usr/bin/git --git-dir=/home/h/.cfg/ --work-tree=/home/h'
|
2020-05-07 16:08:53 +02:00
|
|
|
|
|
|
|
|
2020-04-08 19:52:42 +02:00
|
|
|
alias lm='xbacklight -set'
|
2020-05-13 19:06:19 +02:00
|
|
|
alias bat='check-battery-level'
|
2020-05-07 16:08:53 +02:00
|
|
|
alias now='date "+%I:%M %a %d %b"'
|
2020-05-07 02:09:35 +02:00
|
|
|
alias spot='ncspot'
|
|
|
|
alias todo='todoist'
|
2020-04-15 13:29:03 +02:00
|
|
|
alias weather='curl wttr.in'
|
2020-10-18 16:12:08 +02:00
|
|
|
alias zzz='systemctl suspend && exit'
|