summaryrefslogtreecommitdiffstats
path: root/root
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-12-06 22:40:48 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-12-06 22:40:48 +0100
commit2042a6aab60ad07c7016ee81f1b5eeeeeef81531 (patch)
tree13a83c6f71514545e92e5dec3f4001b79d1aaa78 /root
parentwhoops tb launcher is possibly spyware (diff)
parentMerge branch 'master' of ssh://ni/var/lib/git/sijanec/n (diff)
downloadn-2042a6aab60ad07c7016ee81f1b5eeeeeef81531.tar
n-2042a6aab60ad07c7016ee81f1b5eeeeeef81531.tar.gz
n-2042a6aab60ad07c7016ee81f1b5eeeeeef81531.tar.bz2
n-2042a6aab60ad07c7016ee81f1b5eeeeeef81531.tar.lz
n-2042a6aab60ad07c7016ee81f1b5eeeeeef81531.tar.xz
n-2042a6aab60ad07c7016ee81f1b5eeeeeef81531.tar.zst
n-2042a6aab60ad07c7016ee81f1b5eeeeeef81531.zip
Diffstat (limited to 'root')
-rw-r--r--root/.bash_aliases7
1 files changed, 6 insertions, 1 deletions
diff --git a/root/.bash_aliases b/root/.bash_aliases
index ad8d20f..bbe296d 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