Skip to content

Instantly share code, notes, and snippets.

View lufinkey's full-sized avatar
👁️
struggling through this mortal coil

Luis Finke lufinkey

👁️
struggling through this mortal coil
View GitHub Profile
@lufinkey
lufinkey / ElementaryOS setup
Last active January 8, 2023 17:47
My general setup script for elementary OS
#!/bin/bash
function replace_file_line() {
filename="$1"
oldline="$2"
newline="$3"
if [ "$4" == "-root" ]; then
sudo sed -i "/$oldline/c\\$newline" "$filename"
return $?
else