From 467aaaba5f66b9a0b2d2be823172faedef1a19f7 Mon Sep 17 00:00:00 2001 From: nemo Date: Wed, 3 Sep 2025 11:35:02 +0200 Subject: [PATCH] fix mc file limit alias + journal list-all --- bashrc | 1 + journal | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/bashrc b/bashrc index b515110..64c0f89 100755 --- a/bashrc +++ b/bashrc @@ -160,6 +160,7 @@ alias one-letter-command='sed -n "s/^alias *\(.\)=.*$/\1/p" '$SCRIPT_PATH'/bashr alias loser="echo il n\'y a pas de loser ici, que des winner \(des gens qui utilise linux\)" alias monip="dig +short txt ch whoami.cloudflare @1.0.0.1 | sed 's/\"//g'" alias pvpn="export $(dbus-launch) && gnome-keyring-daemon -r -d && protonvpn-app" +alias fix-minecraft-file-limit="echo 256 | sudo tee /proc/sys/fs/inotify/max_user_instances" # alias avec parametre emoji(){ grep -i $1 $OPT_PATH/emoji; } diff --git a/journal b/journal index 2d7992d..7882b8c 100755 --- a/journal +++ b/journal @@ -39,6 +39,8 @@ if [[ $1 == "help" ]]; then echo -e "\t\tcommit change and push it with today date as commit message unless specified" echo -e $BOLD"\tjournal list$RESET ["$ITA"year|directorie$RESET]" echo -e "\t\tlist all entry of current year unless specified and show their first line" + echo -e $BOLD"\tjournal list-all"$RESET + echo -e "\t\tlist all entry of all year directories and other directories" echo -e $BOLD"\tjournal list-dir"$RESET echo -e "\t\tlist all year directories and other directories" echo -e $BOLD"\tjournal grep$RESET ["$ITA"arg...$RESET] "$ITA"patterns"$RESET @@ -76,6 +78,12 @@ if [[ $1 == "list" ]]; then exit fi; +if [[ $1 == "list-all" ]]; then + cd $pat + ls * + exit +fi; + if [[ $1 == "list-dir" ]]; then ls $pat exit