Post your bash aliases

Post your bash aliases

Attached: file.png (1171x100, 5K)

Other urls found in this thread:

youtube.com/watch?v=5r6yzFEXajQ
github.com/nicknisi/vim-workshop
github.com/nicknisi/dotfiles
0x0.st/sOy9.txt
termbin.com/ae18
ipinfo.io/ip
twitter.com/SFWRedditVideos

>Using bash

alias killscreens="screen -ls | grep Detached | cut -d. -f1 | awk '{print }' | xargs kill &> /dev/null && echo 'Done.' || echo 'No detached screens found.'"

Attached: CopyQ.kn2296.png (834x503, 43K)

for what purpose

Attached: Screenshot_20180717_175555.png (764x419, 55K)

alias l.='ls -d .*'

>apt

Attached: 1527308954849.gif (300x424, 2.56M)

what would you use?

>not using pacman

o-on debian?

>debian
>not using Gentoo, the Jow Forums distro.
BE GONE

alias ffmpeg="ffmpeg -hide_banner"
alias ffprobe="ffprobe -hide_banner"
alias ffplay="ffplay -hide_banner"

>Executable left in ~/Downloads
>Using alias instead of adding it to PATH like everyone else

>using debian

executable not in $PATH
not putting symlink in ~/bin like everybody but this guy

alias p="pushd" +="pushd ." -="popd" d="dirs -l -v"

I'm new to Linux still. I'll google that.

:^)

Attached: Screenshot_2018-07-17_22-44-21.png (1280x681, 88K)

̇͜>̇

Attached: CopyQ.wZ2296.png (840x1023, 147K)

ayy impressed, but i don't see your pip packages updating. you're slacking. step it up lol

Attached: Screenshot_2018-07-17_23-31-34.png (1278x56, 9K)

>using upgrade and dist-upgrade
why tho, just use dist-upgrade

>running an application from the Downloads folder

Attached: scrot_tento_ide_do_mojej_krcikompilacie.png (800x800, 413K)

post tmux status lines from your tmux conf (I assume thats what Im looing at)

For the same reason why when I got to bed and the light is alread off, I turn it on then back off again.

Attached: 1521774717128.gif (350x331, 486K)

nah that's vim. I just used this guy's dot files and tweaked them to my convenience, i mostly code in c++ so, removed his JS functionalities and added C++ ones to mine.

youtube.com/watch?v=5r6yzFEXajQ

Presentation Repo: github.com/nicknisi/vim-workshop Dotfiles Repo: github.com/nicknisi/dotfiles

Attached: mpv-shot0003.jpg (1024x576, 81K)

Attached: 1517623954597.jpg (425x312, 70K)

lmao put your sublime text in your $PATH

fyi, here's how I do that. say I download some random binary into ~/Downloads/prog/prog.x86.binary

then I'd move the downloaded folder into my ~/bin folder (which is in my PATH)
$ mv ~/Downloads/prog/ ~/bin
and create a toplevel softlink in ~/bin (since PATH isnt searched recursively)
$ cd ~/bin; ln -s prog/prog.x86.binary

>apt

Attached: 1528818572116.jpg (229x220, 9K)

Gotta give tripfag credit for making easier to spot newfags.

>anime

i do "sudo install -m 755 /home/nigger/Downloads/hentaigame /bin/hentaigame"

right click menu button
open menu editor
new item
properties
command
browse to executable
choose cool icon
close

alias targz='tar -vczf'
alias untargz='tar -vxzf'
alias tarbz2='tar -vcjf'
alias untarbz2='tar -vxjf'
alias tarxz='tar -vcJf'
alias untarxz='tar -vxJf'
alias cp='cp -v'
alias mv='mv -v'
alias send='rsync -ahvrP'

You see this guy here.
This isn't the guy who posted
install="sudo apt-get install"
in the post you're bash aliases thread.

>unironically using sublime text
Fucking degenerade get off this board.

Linux is a kernel installed in the GNU system.

alias wttr='wget -qO- wttr.in | head -7'

Attached: screenshot.png (630x403, 29K)

alias ffmpeg='ffmpeg -hide_banner -threads "$(($(nproc)-1))"'

elegunt :^)

Attached: 2018-07-17-212922_540x50.png (540x50, 22K)

>rat=cat
topvim
also, what prompt is that?

alias ..="cd .."

Attached: AliA.jpg (741x741, 85K)

Post bash settings.

ulimit -u
Make your shell forkbomb proof.

shopt -s autocd
Automatically cd into directories by just typing the name.

shopt -s cdable_vars
What it says.

shopt -s extglob
Allows extended globbing like echo +(*jpg|*png).

shopt -s globstar
Allows recursive globbing like echo **/*.c.

bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
Typing vim[up arrow] brings you the last vim command.

bind 'set show-all-if-ambiguous On'
bind 'tab:menu-complete'
Cycle through completions.

bind 'set colored-stats On'
bind 'set visible-stats On'
bind 'set mark-symlinked-directories On'
bind 'set colored-completion-prefix On'
bind 'set menu-complete-display-prefix On'
Colored completion.

HISTCONTROL=ignoreboth
HISTIGNORE="&:c:cd:history*:[bf]g:exit"
CDPATH=".:$HOME:$HOME/Documents:$HOME/Downloads:$HOME/Pictures:$HOME/Pictures/Camera:$HOME/Pictures/Camera/misc:$HOME/Pictures/Download:$HOME/Pictures/Download/imageboard:$HOME/Music:$HOME/Videos:$HOME/Music:$HOME/Videos/Youtube"
FCEDIT='vim'

>Just muh user-edited env vars

(shopt tricks guy)
# The following commands will report the location (filename and line number) of a function’s definition. Assuming a function named foo,

# Turn on extended shell debugging
shopt -s extdebug

# Display the function’s name, line number and fully qualified source file
declare -F foo

# Turn off extended shell debugging
shopt -u extdebug

For example, the output of these commands might be:

foo 32 /source/private/main/developer/cue.pub.sh

The above might work only in bash, and not in POSIX shells in general.

Why do you keep ST in your dowloads folder?

alias sudo='sudo '
useful hack that allies to sudo aliases.

alias less='more'

Found the boomer.

>not using prt-get or pkgmk
jokes on you

>2018
>using sublime text
Yikes. ST is the PHP of text editors. Might want to consider joining the VSC revolution.

>fast as fuck text editor written in a real language
vs
>slow and bloated IDE running in a chromium instance

Of course the ST user prefers blue pills and living a deluded lie

>VSC

No thanks, if I wanted to use bloated, leftover corporate shit I'd use Eclipse.

You can insult the world's best IDE/editor all day if it makes you feel better, but you're the one missing out

>ST is the PHP of text editors
bahahaha

> proprietary text editor
the absolute state of numale Jow Forums

alias sduo='shutdown now'

>sduo

Attached: 1521659798250.jpg (572x600, 74K)

Using proprietary software is a much worse sin

excerpt of my .bashrc (with certain things censored, sorry)

Attached: doxx.png (1218x438, 112K)

alias b='cd -'
alias back='cd -'
alias dd='dd status=progress'
alias dir='dir --color=auto'
alias egrep='egrep --color=auto'
alias extip='curl -s www.icanhazip.com'
alias f='ranger'
alias fgrep='fgrep --color=auto'
alias files='ranger'
alias gitup='git push origin master'
alias grep='grep --color=auto'
alias gwin='export CC=/usr/bin/x86_64-w64-mingw32-gcc; env GOOS=windows GOARCH=amd64 CGO_ENABLED=1 go'
alias gwin32='export CC=/usr/bin/i686-w64-mingw32-gcc; env GOOS=windows GOARCH=386 CGO_ENABLED=1 go'
alias ka='killall'
alias ll='ls --color=auto -alh'
alias ls='ls --color=auto '
alias ma='mpc add'
alias mca='mpc clear && mpc add'
alias mcl='mpc clear'
alias md='sudo updatedb'
alias ms='mpc status'
alias mu='mpc update'
alias music='ncmpcpp'
alias newnet='sudo systemctl restart NetworkManager'
alias next='mpc next'
alias pac='sudo /usr/bin/pacman -S'
alias pacc='sudo /usr/bin/pacman -Scc'
alias pacexpl='sudo /usr/bin/pacman -D --asexp'
alias paci='/usr/bin/pacman -Si'
alias pacimpl='sudo /usr/bin/pacman -D --asdep'
alias paclf='/usr/bin/pacman -Ql'
alias paclo='/usr/bin/pacman -Qdt'
alias pacr='sudo /usr/bin/pacman -Rns'
alias pacro='/usr/bin/pacman -Qtdq > /dev/null && sudo /usr/bin/pacman -Rns $(/usr/bin/pacman -Qtdq | sed -e '\'':a;N;ba;s/\n/ /g'\'')'
alias pacs='/usr/bin/pacman -Ss'
alias pacu='sudo /usr/bin/pacman -Syu'
alias pause='mpc pause'
alias play='mpc play'
alias prev='mpc prev'
alias py='python3'
alias py2='python2'
alias q='exit'
alias rm='rm -i'
alias site-clone='wget --mirror --convert-links --adjust-extension --page-requisites --no-parent'
alias sv='sudo vim'
alias v='vim'
alias v3='vim ~/.config/i3/config && i3-msg restart'
alias vb='vim ~/.bashrc && source ~/.bashrc'
alias vv='vim ~/.vimrc'
up() {
cd $(printf "%0.0s../" $(seq 1 $1));
}

t. zshoy

so you can avoid typing long-ass shit?
neo-Jow Forums everyone

this, opie is an underaged

your to dumb

:'-(

"i said would instead of wouldn't"

>mistypes sudo

*chinese cartoon
ftfy :^)

ocd
the lightswitch thing is the textbook example.

alias clean='awk "{if(!_[$0]++){print}}"'
alias clear='printf "\x1bc"'

export GREP_COLORS="mt=37;45"
alias grep='grep --color=auto'


also 0x0.st/sOy9.txt

nix

This one of the some in my .bash_functions

Attached: 2018-07-18-105811_828x762.png (828x762, 331K)

>sublime

/thread

Attached: 2018-07-18-131200_798x118_scrot.png (798x118, 21K)

alias vim='emacs -nw' :^)

>putting Downloads in PATH
You should create a separate folder in your home directory called bin/, put it in your PATH, and move shit there as needed.

Putting Downloads in PATH is almost as bad as putting tmp in PATH.

Reading comprehension.

Ve didn's say "Puth Downloads in $PATH. Ve said "take vis binary and put it in $PATH.

The absolute state of Jow Forums.

>putting individual binaries in PATH
but that's also retarded, it'll make your PATH string unreadable

You don't edit $PATH by placing executables in $PATH dude.

>this guy

Attached: 1517899999086.jpg (250x245, 17K)

If you create a directory ~/bin, that's enough for most distros, if not all by now.
They will be added to your $PATH the next time you reopen your terminal, or run source .bashrc.
The distro I'm using now has
# set PATH so it includes user's private bin directories
PATH="$HOME/bin:$HOME/.local/bin:$PATH"

in .profile, do just mkdir either or both, no env variable tweaking required.

>read
>instead of $1
For what purpose?
To what end?
With what sort of intention?
Why?

termbin.com/ae18

>testing $1
>instead of just using read
For what purpose?
To what end?
With what sort of intention?
Why?

my .bashrc for Git Bash on windows:
alias ed=atom
alias clr=clear
alias irb="irb --simple-prompt"
alias dev="cd C:/Users/monke/dev"
alias julia="julia -q"
alias la="ls -a"
alias python='winpty python.exe'

mkcd(){
mkdir "$1";cd "$1"
}

cd dev

PS1='\[\033]0;$PWD\007\]\n\[\033[33m\]\w\n\[\033[35m\]► \[\033[0m\]'

>bash on windows

Attached: 1531945407761.jpg (645x729, 49K)

I hate windows, but for stuff like games its the only option

Alias update='sudo apt update && sudo apt upgrade && shred /bin/bash'

I don't need aliases because I have nothing to hide, pedo

alias You="bazinga"

gpu passthrough exists

Second on that prompt, pls

Search for nerd fonts on github

$cat .bashrc

alias gambatte="gambatte-sdl -s 3 -i return rshift a z up down left right"

alias ls='ls --color=auto'
alias timer="sh scripts/timer"
alias whatismyip="wget ipinfo.io/ip -qO -"
alias windows-vm="qemu-system-x86_64 -enable-kvm -m 1024 -machine smm=off -drive file=~/Backup\ images/windows7.img -net nic -net user,smb=~/Public"
alias scp-watch="scp -P ## '$1' [email protected]:/home/pi/watch/"
alias scp-watch-movies="scp -P ## $1 [email protected]:/home/pi/watch_movies/"
export EDITOR='mousepad'