diff options
| author | yuzu-eva <stevenhu@web.de> | 2022-06-21 23:01:13 +0200 |
|---|---|---|
| committer | yuzu-eva <stevenhu@web.de> | 2022-06-21 23:01:13 +0200 |
| commit | 5a895dead6520d89be3f051821dc63c2b09af7e4 (patch) | |
| tree | fc420995defcd4bb3f0cec966b87e5fc45d53f24 /.bash_aliases | |
| parent | 01054c77f575140e2197f6355ce5aaa52db5af0f (diff) | |
rm alias file
Diffstat (limited to '.bash_aliases')
| -rw-r--r-- | .bash_aliases | 134 |
1 files changed, 0 insertions, 134 deletions
diff --git a/.bash_aliases b/.bash_aliases deleted file mode 100644 index 099bd6a..0000000 --- a/.bash_aliases +++ /dev/null @@ -1,134 +0,0 @@ -# __ _ _ -# ___ __ _ / _| ___ | |__ __ _| |__ ___ -# / __| / _' | |_ / _ \| _ \ / _' | _ \ / _ \ -# | |__ / (_| | _| __/| |_) / (_| | |_) | __/ -# \___|\___._|_| \___||____/\___._|____/ \___/ -# - - -################# -# Miscellaneous # -################# - -alias cn='clear && neofetch' -alias refreshbash='source ~/.bashrc' -alias fuck='sudo $(history -p !!)' -alias open='xdg-open' -alias rm='rm -iv' -alias mkdir='mkdir -pv' -alias rsync='rsync -avh --progress' - -# Monitor / Resolution settings -alias setlmon-lowres='xrandr --auto --output HDMI-A-0 --mode 640x480 --primary --left-of DisplayPort-2' -alias setlmon-midres='xrandr --auto --output HDMI-A-0 --mode 800x600 --primary --left-of DisplayPort-2' -alias setlmon-default='xrandr --auto --output HDMI-A-0 --mode 1920x1080 --primary --left-of DisplayPort-2' -alias setrmon-lowres='xrandr --auto --output DisplayPort-2 --mode 640x480 --right-of HDMI-A-0' -alias setrmon-midres='xrandr --auto --output DisplayPort-2 --mode 800x600 --right-of HDMI-A-0' -alias setrmon-default='xrandr --auto --output DisplayPort-2 --mode 1600x900 --right-of HDMI-A-0' - -# Set Neofetch ASCII -alias neofetch='neofetch --source ~/Documents/ASCII\ Art/lain-ascii.txt' - -# Colorize grep output -alias grep='grep --color=auto -i -n' -alias fgrep='fgrep --color=auto' -alias egrep='egrep --color=auto' - -# Extract compressed files with corresponding program -extract() { - if [ -f $1 ]; then - case $1 in - *.tar.bz2) tar xvjf $1 ;; - *.tar.gz) tar xvzf $1 ;; - *.bz2) bunzip2 $1 ;; - *.rar) unrar e $1 ;; - *.gz) gunzip $1 ;; - *.tar) tar xvf $1 ;; - *.tbz2) tar xvjf $1 ;; - *.tgz) tar xvzf $1 ;; - *.zip) unzip $1 ;; - *.Z) uncompress $1 ;; - *.7z) 7z x $1 ;; - *.deb) ar x $1 ;; - *.tar.xz) tar xf $1 ;; - *.tar.zst) unzstd $1 ;; - *) echo "'$1' cannot be extracted via extract()" ;; - esac - else - echo "'$1' is not a valid file" - fi -} - -############## -# Navigation # -############## - -alias hdd='cd /media/Becoming\ a\ Philosopher' - -# Function to move multiple directories upwards -up() { - local dir="" - local limit="$1" - - # Default to limit of 1 - [ -z "$limit" ] || [ "$limit" -le 0 ] && limit=1 - - for ((i = 1; i <= limit; i++)); do - dir="../$dir" - done - - # Perform cd. Show error if cd fails - cd "$dir" || echo "Couldn't go up $limit directories!" -} - -# Use exa instead of ls -alias ls='exa -lah --color=always --group-directories-first' - -####### -# git # -####### - -alias commit='git commit -m' -alias fetch='git fetch' -alias pull='git pull origin' -alias push='git push origin' -alias stat='git status' - -# Shortcut for dotfiles repo -alias dfiles='/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME' - -################### -# Package Manager # -################### - -alias aptin='sudo apt install' -alias aptup='sudo apt update && sudo apt upgrade' -alias aptupd='sudo apt update' -alias aptupg='sudo apt upgrade' -alias aptrm='sudo apt remove' -alias listup='apt list --upgradeable' -alias listin='apt list --installed' - -########## -# yt-dlp # -########## - -alias ytmp3='yt-dlp -x --audio-format mp3 -o "/media/Becoming a Philosopher/Music/Youtube Downloads/%(title)s.%(ext)s"' -alias ytvid='yt-dlp -o "/media/Becoming a Philosopher/Videos/Archives/Output/%(title)s.%(ext)s"' -alias ytarchive='yt-dlp --write-description --write-info-json --write-thumbnail --write-sub -o "/media/Becoming a Philosopher/Videos/Archives/%(uploader)s/%(upload_date)s - %(title)s/%(title)s.%(ext)s"' - -########### -# Network # -########### - -alias restart-network='sudo systemctl restart systemd-resolved.service && sudo service network-manager restart' -alias flush-dns='sudo /etc/init.d/dns-clean start' - -############# -# Shortcuts # -############# - -alias jpwine='LANG=ja_JP.UTF-8 WINEDEBUG=-all wine' -alias kndds='wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Pantsu\ Soft/Kokoro\ no\ Doki\ Doki\ Senpai/lib/windows-i686/Kokoro.exe' -alias ds2='wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Dungeon\ Siege\ II/DS2BWAllSaves.exe' -alias vi='nvim' |
