From ee464d8d89b4adde8904f96aa53a7ebe9defdf53 Mon Sep 17 00:00:00 2001 From: Spirit Date: Tue, 14 Nov 2023 18:58:15 +0300 Subject: [PATCH] + `.bash_aliases` --- .bash_aliases | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .bash_aliases diff --git a/.bash_aliases b/.bash_aliases new file mode 100644 index 0000000..1d90bd5 --- /dev/null +++ b/.bash_aliases @@ -0,0 +1,48 @@ +# .bash_aliases + +alias vi='vim' +alias wget='wget -c' + +# xbps +alias xu='sudo xbps-install -S; sudo xbps-install -u xbps; sudo xbps-install -u' +alias xrm='sudo xbps-remove -R' + +# 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/"' +alias mkdir='mkdir -p' +alias rm='rm -I --preserve-root' + +# Git +alias gs='git status' +alias gl='git log --graph --oneline --decorate' +alias gc='git commit -m' +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' +alias jt='julia -e "using Pkg; Pkg.activate(pwd()); Pkg.test()"' +alias jopt='julia --optimize=3 --check-bounds=no --math-mode=fast --threads auto' + +# Monitoring +alias mem='free -m -l -t' +alias pmem='ps auxf | sort -nr -k 4' +alias pcpu='ps auxf | sort -nr -k 3' +alias speedtest='curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/d456ed64c70fd0a1081410505daba3aef3e4fa61/speedtest.py | python3 -'