From 5930748fe5f342dff218f8e9f5cba935cf94702a Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Sat, 17 Jun 2023 16:55:04 +0200 Subject: [PATCH] Ajout : fonction pour initialiser DISPLAY dans un shell --- home/shrc.d/functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/shrc.d/functions b/home/shrc.d/functions index 3d54135..4bc45f5 100644 --- a/home/shrc.d/functions +++ b/home/shrc.d/functions @@ -9,3 +9,8 @@ command_not_found_handler() { return 127 } +# sh +set-display() { + export DISPLAY=":${1:-1}" +} +