Skip to content

Instantly share code, notes, and snippets.

@Masterxilo
Masterxilo / permfunction
Last active October 24, 2024 03:25
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
# Add permalias command to my bash shell
# from
# https://askubuntu.com/questions/1414/how-to-create-a-permanent-alias
# https://askubuntu.com/a/80290/521770
#
# installation:
# { curl -s https://gist.githubusercontent.com/Masterxilo/f1967743fda3a1aded56ebaff4dd097b/raw/permalias | source /dev/stdin ; source ~/.bashrc ; }
#
hello