dots/.aliasrc

55 lines
1.2 KiB
Plaintext
Raw Normal View History

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
2020-05-07 02:09:35 +02:00
alias ..="cd .."
alias ...="cd ../.."
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
2020-04-08 21:21:32 +02:00
alias l='ls -1'
alias ll='ls -lh'
2020-12-03 12:00:52 +01:00
alias lt='ls -lht'
2020-04-07 22:24:30 +02:00
alias la='ls -lha'
2020-12-03 12:00:52 +01:00
alias lta='ls -lhat'
# Safety
alias rm='rm -I --preserve-root'
alias mv='mv -i'
alias cp='cp -i'
alias ln='ln -i'
alias mkdir='mkdir -p'
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}'
2020-08-18 18:22:50 +02:00
2020-12-03 12:00:52 +01:00
alias df='df -kTh'
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
alias tmuxl='tmux list-sessions'
alias tmuxs='tmux new-session -s'
alias tmuxk='tmux kill-session -t'
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'