Skip to content

Instantly share code, notes, and snippets.

@Masterxilo
Masterxilo / permfunction
Last active August 30, 2023 14:46
permfunction
#!/bin/bash
# This script adds a program/script/command called 'permfunction' to you PATH
# permfunction allows you to write system-wide, on-PATH instantly available, persisted scripts, i.e. improved shell functions/aliases/abbreviations/short programs.
#
# TODO also persist these functions as gists for the user
# inspired by
# https://askubuntu.com/questions/1414/how-to-create-a-permanent-alias
# https://askubuntu.com/a/80290/521770