Last active
April 28, 2022 19:14
-
-
Save BOSSoNe0013/5f0536c26de6938a61dbe46ec46b39a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Collection of useful aliases by Cyril BOSSELUT | |
# This method call the Neofetch app with a random ASCII image | |
# ASCII images are .txt file stored in ~/.ascii folder | |
function welcome_message() { | |
ascii_file=`fd . ~/.ascii -t f -e txt | shuf -n 1` | |
neofetch --ascii $ascii_file --bar_char '#' '-' --bar_colors 4 1 | |
} | |
# Set 'history' format to show more useful info | |
export HISTTIMEFORMAT="%d/%m/%y %T " | |
# Force KMix to use raw ALSA mode (disable PulseAudio) | |
export KMIX_PULSEAUDIO_DISABLE=0 | |
# Show disks usage | |
alias dfi="df -h -t ext4 --total | cat --file-name \"Disks usage\" -l YAML --style grid,header" | |
# TODOs management from the CLI | |
alias t="todo.sh add" | |
alias tl="todo.sh ls" | |
# Display Matrix style dropping chars in the terminal and lock it | |
alias lck="cmatrix -s -b -C red #&& vlock" | |
# Welcome message | |
alias welcome=welcome_message | |
# Applications management | |
alias update="sudo apt update && apt list --upgradable" | |
alias upgrade="sudo apt upgrade -y" | |
alias clean_install="sudo apt autoremove" | |
alias search="apt search " | |
alias list="apt list --installed" | |
alias install="sudo apt install " | |
alias uninstall="sudo apt remove " | |
# System resources | |
alias top="bpytop -b 'cpu mem net proc'" | |
# Vi or eMacs ? | |
alias vi="emacs -nw" | |
# Display image in terminal | |
alias view="ucollage" | |
# The bat helps the cat | |
alias cat="bat" | |
# Find files | |
alias fd="fdfind" | |
# Preview font file in terminal | |
alias fp="fontpreview-ueberzug -b '#050504' -f '#dbccb0'" | |
# Better ping. Can ping multiple hosts at the same time | |
alias ping="gping" | |
# Clear terminal and show welcome message | |
alias clear="/usr/bin/clear && welcome" | |
# Search words or sentences on Wikipedia | |
alias wp="wikipedia2text -b elinks -l fr -C -s -p" | |
# Listen to YouTube Music in the terminal | |
alias ytmusic="mpsyt" | |
# Parse and filter JSON | |
alias jq="/usr/bin/jq -S" | |
# Better `ls` command | |
alias ls="exa --icons" | |
# Search song title | |
alias sr="songrec" | |
# Translate words or sentences using translate-shell | |
alias fr2en="trans -t en " | |
alias en2fr="trans -t fr -l en " | |
# BFG is a git repository history cleaner https://rtyley.github.io/bfg-repo-cleaner/ | |
# use `--delete-files {files}` to remove files from history | |
alias bfg="java -jar ~/.java/bfg.jar" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Most of the alternative softwares used are available on the Ubuntu repositories :
sudo apt install bpytop emacs bat fd-find gping wikipedia2text exa songrec translate-shell