From 69349c2c43c1019422536751eeb60e46a6c8daba Mon Sep 17 00:00:00 2001 From: _N3m0 Date: Wed, 18 Oct 2023 14:49:56 +0200 Subject: [PATCH] no (homo) --- bashrc | 2 +- mcphrase | 1 + noblankline | 3 +++ nocomment | 5 +++++ 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 noblankline create mode 100755 nocomment diff --git a/bashrc b/bashrc index 61b95dd..65ec6e0 100644 --- a/bashrc +++ b/bashrc @@ -106,7 +106,7 @@ alias lampp="sudo /opt/lampp/lampp" alias clean="alias clr=\"clear\"" alias oracle="cd ~/downloads/sqldeveloper/ && ./sqldeveloper.sh" alias elephant="pqiv --fullscreen -ti ~/pictures/dall-e" -alias l="if [ \$(pwd) == \"\$HOME/dev\" ]; then lsprj; else ls; fi" +alias l="if [ \$(pwd) == \"\$HOME/dev\" ]; then lsprj; else ls $*; fi" # alias avec parametre emoji(){ grep -i $1 ~/documents/emoji; } diff --git a/mcphrase b/mcphrase index 6273314..5c3f582 100644 --- a/mcphrase +++ b/mcphrase @@ -29,4 +29,5 @@ singerie grand master cringe CCC ratio + banane +singe diff --git a/noblankline b/noblankline new file mode 100755 index 0000000..db0bfc1 --- /dev/null +++ b/noblankline @@ -0,0 +1,3 @@ +#!/bin/bash + +sed "/^ *$/d" $1 diff --git a/nocomment b/nocomment new file mode 100755 index 0000000..fc85959 --- /dev/null +++ b/nocomment @@ -0,0 +1,5 @@ +#!/bin/bash + +sed "/^\/\//d" $1 |\ +sed "/^#/d" |\ +sed "/^\/\*/,/\*\/$/d"