Post your .bashrc

Post your .bashrc

Attached: 1560983438123.jpg (288x392, 17K)

Other urls found in this thread:

youtube.com/watch?v=UnbmwxYi18I
files.catbox.moe/lau6ew.fish
github.com/zanculmarktum/dotfiles.git
twitter.com/AnonBabble

youtube.com/watch?v=UnbmwxYi18I

>memetuber
yikes

I don't have one
and my .zshrc hits the character limit

>my .zshrc hits character limit
the bloat...

poweroff --reboot

ubuntu's default, just with __git_ps1 command added to PS1

Same, just default ubuntu with PS1, fortune/cowsay/lolcat, and autojump

Fuck off Luke

Attached: Max GUn.png (393x398, 197K)

No thanks. You don't need to know what software I'm running.

>yikes
faggot

This but with .kshrc

This is now aliases thread
Post your aliases

#!/usr/bin/env bash

alias p="mpv *.flac --no-audio-display"

alias l="ls"
alias ll="ls -lh"
alias la="ls -A"
alias sl="ls"
alias cd..="cd .."
alias cdd="cd ~/Downloads"
alias cdo="cd ~/Documents"
alias cdop="cd ~/Documents/pastas"
alias cdoc="cd ~/Documents/code"
alias cdi="cd ~/Images"
alias cdv="cd ~/Videos"
alias cdm="cd ~/Music"
alias cdb="cd ~/bin"

alias m="make -j9"

alias :e="vim"
alias v="vim"
alias bim="vim"
alias bi="vim"
alias via="vim ~/.bash_aliases"
alias vib="vim ~/.bashrc"
alias viv="vim ~/.vimrc"
alias si="sudo vim"
alias sim="sudo vim"
alias viu="sudoedit /etc/portage/make.conf"
alias vip="sudoedit /etc/portage/package.use/zz-autounmask"
alias vwm="sudoedit /etc/portage/savedconfig/x11-wm/dwm-6.1-r1.h"

alias dsize="du -hs * | sort -rh | head -5"
alias fspace=" df -h | grep -E \"sda2|ะค\""

alias sm="xrandr && xrandr --auto"
alias mm="xrandr && xrandr --output HDMI1 --auto --above eDP1"

alias e="sudo emerge --ask"
alias emerge="sudo emerge"
alias htop="TERM=linux-16color htop"
alias erlr="erl -noshell -run"

alias sshn="ssh [email protected]"

alias bat='upower -i /org/freedesktop/UPower/devices/battery_BAT0| grep -E "state|time\ to|percentage"'
alias batt="watch -t upower -i /org/freedesktop/UPower/devices/battery_BAT0"
alias fixaudio="pulseaudio -k && pulseaudio"

alias gitlog="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d %C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all"

That's amazing, but also you are really fucking lazy

alias bim="vim"
alias bi="vim"

audible kek

>alias bim="vim"
>alias bi="vim
Kek but also something I'm adding to mine.

notable aliases:

alias f='find . 2>/dev/null -name'
alias dus='shopt -s dotglob && du -sh * 2> /dev/null | sort -h && shopt -u dotglob'
alias pag='ps aux | grep -v "grep" | grep'

I don't get this, is this a QWERTY user thing?

function to extract rar and .r## then delete them
rawr() {
((!$#)) && echo "no args supplied" && return 1;
ARG="$@";
unrar x "$ARG" &&
SARG="$(echo "$ARG" | sed 's/.[^.]*$//')" &&
echo "Deleting ur shit ";
find . -regex "\.\/"$SARG".*\.\(r[0-9][0-9]\|rar\|sfv\|nfo\)" -exec rm {} + &&
echo "files deleted";
}

Fish

alias ls='ls -h --color=auto --group-directories-first -X -F'

Maybe

Attached: 1549796939959.png (247x120, 7K)

Wrong keys, sorry I'm a bit drunk right now.

Attached: 1559246533852.png (271x136, 8K)

Are his titles always this clickbait-y? Yes, he says Bash is slow compared to other shells (which it is), but at the same time he shows examples of useful bashisms and scripts, where even he couldn't be bothered to stay true to POSIX. It seems like he's more concerned about telling people the difference between Bash scripting and POSIX compliant shell scripting and reminding them to be careful to use the right shebang, than to bash Bash.

That guy doesn't have knowledge of anything.
His videos are always based on blog posts he just read, even though he doesn't know anything about the topic.
What feeds him is the amount of reddit teens that need an web celeb that follow and blindly copy anything that he does.

alias update-hosts='~/update-hosts.sh'
alias update-both-hosts='~/update-both-hosts.sh'
alias update-hosts-gh='~/update-hosts-gh.sh'
alias update-pac='~/update-pac.sh'
alias update-pac-gh='~/update-pac-gh.sh'
alias update-qbt-bl='~/update-qbt-bl.sh'
alias update-qbt-bl-win='~/update-qbt-bl-win.sh'
alias ppa-fix='~/ppa-fix.sh'
alias wifi-channels='sudo iwlist wlp2s0 scan | sort -n | grep \(Channel'
alias fix-packages='sudo apt-get install -f'
alias forcowlol='fortune -a | cowsay | lolcat'
alias scr4tch='uname -oprv | lolcat && lsb_release -ds | lolcat && screenfetch -A "LiGNUx" -s'
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,141,52,1635,905'
alias set-op-dimen='wmctrl -r "- Opera" -e 0,141,52,1637,934'
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-bt='sudo systemctl enable bluetooth-resume.service'
alias fix-bts='~/fix-bluetooth-speaker.sh'
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'
alias go2cpb='cd ~/Downloads/CPBL-GitHub/CombinedPrivacyBlockLists'
alias gitfresh='git fetch origin && git reset --hard origin/master && git clean -f -d'
alias pdf2html='pdf2htmlEX'
alias cow2gay='sh ~/lolcatsay.sh'
alias localpkgs='apt-show-versions | grep "No available version"'
alias waspscan='sudo sh ~/WaspScannerUtil.sh'
alias fontcacheup='sudo fc-cache -f -v && fc-cache -f -v'
alias markov-it='mctext -w120 -s1 ~/mctextdata.txt'

whoops, files.catbox.moe/lau6ew.fish

test
test

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

alias rm='rm -i'
alias open=xdg-open

mkcd() {
if [ "$#" -lt 1 ]; then
echo 'not enough arguments' >&2
return 1
fi
if [ "$#" -gt 1 ]; then
echo 'too many argmuents' >&2
return 1
fi
mkdir -p -- "$1" && cd -P -- "$1"
}

lets DDOS this guy! this retard leaked his IP it is 192.168.0.216

based

good idea

>ddosing a 192.168.x.x address
I fucking hate summers

I'm pretty sure you're the summerfag here, mate.

Based

>default void .bashrc
based

It's the default arch .bashrc too.

and the default debian .bashrc

alias cd="rm -vr"
alias exit="echo nope"
alias poweroff="echo nope"
alias shutdown="echo nope"

cd
git clone github.com/zanculmarktum/dotfiles.git
mv dotfiles/.git .
rm -rf dotfiles
git checkout .

alias fbi="umount /mnt/shh/ && shred -v /dev/sdg"

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions

How would you even fix this without booting from another OS?

cat .profile
#!/bin/sh
export EDITOR=vi
export TERMINAL=konsole
export BROWSER=firefox
export LESS="-RSi"
#export QT_QPA_PLATFORMTHEME="qt5ct"
#export GTK_THEME="Breeze:dark"

export VISUAL="$EDITOR"
#export GPG_TTY="$(tty)"
export HISTFILE=
export LESSHISTFILE=-

cat .config/fish/config.fish
#! /bin/fish
# Fix colored ls output
#eval (dircolors -c ~/.dircolors | sed 's/>&\/dev\/null$//')

# No greeting
set fish_greeting ''

# Add paths
#set -U fish_user_paths ~/bin /usr/sbin
set dir "$HOME/.local/share/flatpak/exports/share"
if test -d "$dir"
if test -n "$XDG_DATA_DIRS"
#set -x XDG_DATA_DIRS "$XDG_DATA_DIRS:$dir"
else
#set -x XDG_DATA_DIRS "$dir"
end
end

# Export environment variables
set -x SHELL /bin/fish
set -x EDITOR "vi"
set -x VISUAL "$EDITOR"
set -x TERMINAL "konsole"
set -x BROWSER "firefox"
set -x QT_QPA_PLATFORMTHEME "qt5ct"
set -x _JAVA_OPTIONS "-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dsun.java2d.opengl=true"
#set -x MOZ_USE_OMTC 1
#set -x LIBGL_DRI3_DISABLE 1

set -x LESS "-RSi"
set -x GPG_TTY "(tty)"
set -x HISTFILE
set -x LESSHISTFILE "-"

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

set -o noclobber

alias ls='ls --color=auto'

PS1='[\u@\h \W]\$ '

alias amm="amm --no-remote-logging"
alias idea="/black/working/ideasgroup/idea"
alias config="/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME"

export PATH=$PATH:/usr/lib/jvm/java-8-graal/bin;

export JAVA_HOME="/usr/lib/jvm/default"

colorized diff using git
alias diff='git --no-pager diff --no-index
usage
diff file file2

add `init=/bin/sh` or `single` to the kernel command line or whatever, delete/edit the file, and reboot.

Attached: being a developer.png (960x525, 330K)

alias c='clear'
alias q='exit'
alias r='ranger'
alias v='vim'
alias ls='ls --color=auto'
alias fzf="fzf --preview 'cat {}'"
alias empty-trash="rm -r ~/.trash/*"

not much in my .bashrc, so here's my .profile
#!/bin/sh

ENV=$HOME/.profile; export ENV
export PATH="$PATH:$HOME/.scripts"
export EDITOR="nvim"
export TERMINAL="st"
export BROWSER="firefox"
export READER="mupdf"
export FILE="dolphin"
export GTK_USE_PORTAL=1
export XDG_CURRENT_DESKTOP=KDE

# aliases
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias ..='cd ..'
alias v='nvim'
alias vv='doas nvim'
alias r='ranger'
alias rr='doas ranger'
alias xi="doas xbps-install"
alias xr="doas xbps-remove"
alias xq="xbps-query"
alias yv="youtube-viewer"
alias yd="youtube-dl"
alias po="doas poweroff"
alias re="doas reboot"
alias radeontop="doas radeontop -c"

if [ "`id -u`" = "0" ]; then
PS1="$(echo '\033[1m\033[31m`hostname`:\033[34m\033[1m `pwd`\033[0m\n# ')"
else
PS1="$(echo '\033[1m\033[32m`hostname`:\033[34m\033[1m `pwd`\033[0m\n$ ')"
fi

if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then
exec startx
fi

nice try fbi

going to steal those ReadBinary and WriteBinary from your vimrc

alias ll='ls -l --block-size=M'
alias lla='ls -la --block-size=M'
alias la='ls -A --block-size=M'
alias l='ls -CF --block-size=M'
alias bashreload='source ~/.bashrc'
alias get='sudo apt-get install'
alias untargz='tar -xvzf'
alias emacs='emacs -nw'

it was actually taken from
$ vim -c ':h hex-editing'
with some modifications

That was the most pointless 11 minutes of my entire fucking life.
All he did was show off extended features of bash that are actually useful, then say "YEAH BUT IT'S SLOW" without saying how slow or backing it up at all.
What a retard.

>bash is better for scripting, has great tools, bashisms are great, only is a bit less performing on a level nobody would notice
>then use this anorexic posix compliant shell that is a complete piece of shit for 0.1 less execution time to appeal for fags who use shit shells
wtf i love GNU now

I'm always amazed how few people use functions in their bashrc.
set -o vi
shopt -s autocd cdspell dirspell

alias l=ls
alias ll='ls -lh'
alias la='ls -A'
alias lla='ls -lAh'
alias lz='ls -Z'
alias pwgen='pwgen -s'
alias qemu=qemu-system-x86_64
alias zathura='zathura --fork'
alias userctl='systemctl --user'

daemon() (nohup "$@" >& /dev/null &)
alias mpvd='daemon mpv'
alias feh='daemon feh'

md() { pandoc "$@" | lynx -stdin; }

nft-list() {
sudo nft list tables |while read -r -- type family table
do sudo nft list "$type" "$family" "$table"
done
}

Man, you can create bin folder in your ~ and add it to the PATH variable
then just dump your .sh files there. They will be instantly registered as commands, no aliases needed.

Attached: 1531176931297.jpg (807x729, 73K)

>uses scripting language
>complains its slow
>"features I don't use and am too much of a cuck to learn are bloat!"
wow great video fagtron

I don't have a bashrc because I'm not a bloatnigger

>only is a bit less performing on a level nobody would notice
I always wondered how much of a real world difference it makes. I only ever found some shitty made up benchmark scripts on Stack Overflow.

based

>ssh alias
dude use the fucking ssh .config

Other users (with sudo permissions), boot into single user mode, take out the drive and just change the file, there's options.
Number 2 is the only option that will work no matter what, EG FDE

i'm afraid i'll lose track if i do that. i write hacky bash scripts for so many different things. doing that with a few of my most used ones seems like a fine idea though. thank you.

zsh >> bash

>aliases
>not having a kino .bash_history with comments
>plebs

ls -hA #la

>bim :DDD

Attached: :DDD.jpg (400x292, 17K)

Check out fzf and it's bash bindings if you haven't already.

How is this better than an alias?

>alias erlr="erl -noshell -run"

we got a winner here

Try org-mode. I always write my big config files with it, helps keep track

everyone makes typos and it should still work. like exit exut exot xit or stuff like shh instead of ssh
are all things I use.

you tried

alias ls='ls --color=auto'
alias mpvlive='mpv --no-resume-playback --ytdl-format=720p60'
alias mpvlivehd='mpv --no-resume-playback'
alias mpvvod='mpv --cache-secs=600'
alias sox='ssh [email protected]'
alias superclean='sudo apt autoremove && sudo apt autoclean'
alias superdual='xrandr --output HDMI-2 --off --output HDMI-1 --off --output DP-1 --mode 3840x2160 --pos 1920x0 --rotate normal --output eDP-1 --primary --mode 1920x1080 --pos 0x544 --rotate normal --output DP-2 --off'
alias supermount='sudo mount 192.168.0.2:/mnt/RED /mnt/RED && sudo mount 192.168.0.2:/home/sox/Downloads /mnt/soxdownloads'
alias supersingle='xrandr --auto'
alias superumount='sudo umount /mnt/RED && sudo umount /mnt/soxdownloads'
alias superupdate='sudo apt update && sudo apt full-upgrade'

Probably could delete most this now desu, ff2mpv in firefox means I don't paste links in the terminal manually anymore and I've bound xrandr to keyboard shortcuts instead.

Learn 2 type nigre

fuck luke smith

function cd {
builtin cd "$@";
ls;
}

alias vz="nvim ~/.zshrc && source ~/.zshrc"
alias -s pdf=xdg-open
alias vim="nvim"
alias neko="./software/oneko/oneko -rv"
alias vv="vim .vimrc"
alias vb="vim .bashrc"
alias vx="vim .xinitrc"
alias fv="vim \$(fzf)"
alias blu="betterlockscreen -u ~/pictures/wall/*"
alias :q="exit"
alias record="ffmpeg -f x11grab -s 1680x1050 -i $DISPLAY screenrecording.mk v"
alias downpage="wget -nd -E -H -k -K -p -e robots=off"
'

only thing I changed is
`function clr() {
clear
cd ~/
screenfetch
}
`

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

this

underrated

Everyone talks about the virgin Luke Smith when really you should be watching the chad gotbletu. gotbletu only showcases applications and writes his bash shit if he feels the need and the videos are just explaining how they work. If it takes 2 minutes it takes 2 minutes, no padding out a video for 8 more minutes to hit that magical 10 min mark for money reasons.

rm -rfv --no-preserve-root /

Verbose huh

>alias sl="ls"
But then how do you run steam locomotive?

alias root="root -l"

After hitting ctrl+L for so long i forgot that clear was even a command

ok guys, i didn't miss with my bashrc. where i can learn how to customise this shit? after using linux for 2 months i installed fish for the colors and the auto-completion but i feel like a retard when i'm using the shell

fish is great, don't listen to the haters

I don't understand what is so dangerous here? It shuts down, then reboots and then what? Reboot-Loop or what? What the hell why?

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

case $- in
*i*) ;;
*) return;;
esac

HISTCONTROL=ignoreboth

shopt -s histappend

HISTSIZE=1000
HISTFILESIZE=2000

shopt -s checkwinsize

if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac

if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
color_prompt=yes
else
color_prompt=
fi
fi

if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac

if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
fi

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
export JAVA_HOME=/usr/java/jre1.8.0_211/bin/java
export PATH=$PATH:/usr/java/jre1.8.0_211/bin

Attached: t4g36ba8qi221.jpg (867x685, 90K)

What do you have to hide user?

Based

>faggot
oof

>oof
cringe