dotfiles/.bash_aliases

60 lines
1.7 KiB
Bash
Raw Normal View History

2023-11-14 18:58:15 +03:00
# .bash_aliases
alias vi='vim'
alias wget='wget -c'
# xbps
2024-07-29 06:16:03 +03:00
alias xi='doas xbps-install -S'
alias xrs='xbps-query -Rs'
alias xu='doas xbps-install -S; doas xbps-install -uy xbps; doas xbps-install -u'
alias xrm='doas xbps-remove -R'
2023-12-25 14:31:40 +03:00
alias xd='xbps-query -x'
2024-07-29 06:16:03 +03:00
alias xD='xbps-query -X'
2023-11-14 18:58:15 +03:00
# Colorize
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
# File managment
alias ..='cd ..'
alias ...='cd ../../../'
alias la='ls -A'
alias ll='ls -la'
alias l.='ls -d .*'
alias tree='tree -a -I ".git/"'
2023-12-25 14:33:13 +03:00
alias mkdir='mkdir -pv'
2023-11-14 18:58:15 +03:00
2023-12-25 14:35:42 +03:00
# Power management
alias reboot='doas /usr/bin/reboot'
alias poweroff='doas /usr/bin/poweroff'
alias halt='doas /usr/bin/halt'
alias shutdown='doas /usr/bin/shutdown'
2023-12-25 14:35:42 +03:00
2023-11-14 18:58:15 +03:00
# Git
alias gs='git status'
2023-12-25 14:37:02 +03:00
alias glog='git log --graph --oneline --decorate'
alias commit='git commit -m'
2023-11-14 18:58:15 +03:00
alias add='git add'
alias pull='git pull --verbose'
alias push='git push --verbose'
# Rust / Cargo
alias cr='cargo run'
alias ct='cargo test'
alias cb='cargo build'
# Julia
#alias julia='julialauncher' # just make a symbolic link lazy kid :) 'doas ln -s /usr/bin/julialauncher /usr/bin/julia'
2024-09-12 01:36:51 +03:00
alias jt='julia --color=yes --project=@. -e "using Pkg; Pkg.test(); rm(\"./Manifest.toml\")"'
alias jtold='julia +1.0 --color=yes --project=@. -e "using Pkg; Pkg.test(); rm(\"./Manifest.toml\")"'
alias jtpre='julia +alpha --color=yes --project=@. -e "using Pkg; Pkg.test(); rm(\"./Manifest.toml\")"'
2023-11-14 18:58:15 +03:00
alias jopt='julia --optimize=3 --check-bounds=no --math-mode=fast --threads auto'
2023-12-25 15:12:56 +03:00
# Python
alias py='python'
2023-12-25 15:30:08 +03:00
# SSH for AWS server
alias aws='doas ssh -i /path/to/key-file.pem ec2-user@ec2-000-000-000-000.compute-1.amazonaws.com'