open function nautilus

mail@pastecode.io avatar
unknown
plain_text
3 years ago
152 B
4
Indexable
open(){
	if [[ -z "$1" ]]; then
		eval $(nautilus -w . > /dev/null 2>&1 &)
	elif [[ -n "$1" ]]; then
		eval $(nautilus -w "$1" > /dev/null 2>&1 &)
	fi
}