emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/eat a9bf5e5248 5/7: * integration/bash: Use '__' prefix


From: ELPA Syncer
Subject: [nongnu] elpa/eat a9bf5e5248 5/7: * integration/bash: Use '__' prefix
Date: Sat, 3 Dec 2022 14:58:36 -0500 (EST)

branch: elpa/eat
commit a9bf5e5248332eacc785809b90b8bbed01f7770c
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>

    * integration/bash: Use '__' prefix
---
 integration/bash | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/integration/bash b/integration/bash
index 421faf3112..32bc4bf348 100644
--- a/integration/bash
+++ b/integration/bash
@@ -1,13 +1,13 @@
-function _eat_prompt_command () {
+__eat_prompt_command () {
   # Send the current working directory, for directory tracking.
   printf "\\e]7;file://%s%s\\e\\\\" "$HOSTNAME" "$PWD"
 }
 
-# Add '_eat_prompt_command' as the last element of 'PROMPT_COMMAND'.
-if [ -z "$_eat_bash_integration_enabled" ]
+# Add '__eat_prompt_command' as the last element of 'PROMPT_COMMAND'.
+if test -z "$__eat_bash_integration_enabled"
 then
-  _eat_bash_integration_enabled=yes
-  PROMPT_COMMAND+=(_eat_prompt_command)
+  __eat_bash_integration_enabled=yes
+  PROMPT_COMMAND+=(__eat_prompt_command)
 fi
 
 # Local Variables:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]