diff options
author | filip <“filip.rabiega@gmail.com”> | 2025-07-02 14:46:08 +0200 |
---|---|---|
committer | filip <“filip.rabiega@gmail.com”> | 2025-07-02 14:46:08 +0200 |
commit | 54a39b322d1e13911d8f03d533ee1ed1a2af17d5 (patch) | |
tree | 37656ec15d0d8bdfc4c2930f72581b8f035d21b0 /add-alias | |
download | chadscripts-54a39b322d1e13911d8f03d533ee1ed1a2af17d5.tar.gz chadscripts-54a39b322d1e13911d8f03d533ee1ed1a2af17d5.tar.bz2 chadscripts-54a39b322d1e13911d8f03d533ee1ed1a2af17d5.zip |
dump
Diffstat (limited to 'add-alias')
-rwxr-xr-x | add-alias | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/add-alias b/add-alias new file mode 100755 index 0000000..92122b3 --- /dev/null +++ b/add-alias @@ -0,0 +1,8 @@ +#!/bin/sh +add-alias () +{ + local name=$1 value="$2" + echo alias $name=\'$value\' >>~/.bash_aliases + eval alias $name=\'$value\' + alias $name +} |