Skip to content

Instantly share code, notes, and snippets.

View steewbsd's full-sized avatar
:shipit:
ssu dd if=/dev/zero of=/zroot/bugs

Daniel Pérez steewbsd

:shipit:
ssu dd if=/dev/zero of=/zroot/bugs
View GitHub Profile
@steewbsd
steewbsd / extract.fish
Last active September 21, 2020 10:08
Quick fish function to extract generic compressed archives. Usage: extract [FILE]. Add this to your ~/.config/fish/functions folder
function extract
if test $argv && test -e $argv
switch $argv
case '*.tar.bz2'
tar xjf $argv
case '*.tar.gz'
tar xzf $argv
case "*.bz2"
bunzip2 $argv
case "*.rar"