diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-12-06 22:31:27 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-12-06 22:31:27 +0100 |
commit | 11bc39aeabd0f9b4fc5556b26e0e9fe337b8c271 (patch) | |
tree | 957de9efa3dddedc9be8cfabf61dd020a51a81cf /root/.bash_aliases | |
parent | b (diff) | |
download | n-11bc39aeabd0f9b4fc5556b26e0e9fe337b8c271.tar n-11bc39aeabd0f9b4fc5556b26e0e9fe337b8c271.tar.gz n-11bc39aeabd0f9b4fc5556b26e0e9fe337b8c271.tar.bz2 n-11bc39aeabd0f9b4fc5556b26e0e9fe337b8c271.tar.lz n-11bc39aeabd0f9b4fc5556b26e0e9fe337b8c271.tar.xz n-11bc39aeabd0f9b4fc5556b26e0e9fe337b8c271.tar.zst n-11bc39aeabd0f9b4fc5556b26e0e9fe337b8c271.zip |
Diffstat (limited to 'root/.bash_aliases')
-rw-r--r-- | root/.bash_aliases | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/root/.bash_aliases b/root/.bash_aliases index d7730ea..56c4e9e 100644 --- a/root/.bash_aliases +++ b/root/.bash_aliases @@ -20,7 +20,12 @@ function kladivo () { iptables -A INPUT -s $1 -j DROP } function c () { - gcc -g -Wall -Wextra -pedantic -Wformat -Wformat-security $@ -lm + fn=$@ + for arg in $@ + do + grep ^- <<<$arg > /dev/null && fn=$arg + done + gcc -g -Wall -Wextra -pedantic -Wformat -Wformat-security -o`rev <<<$arg | cut -d. -f2- | rev` $@ -lm } alias pmbootstrap="pmbootstrap --as-root" HISTCONTORL=ignoreboth |