summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Leferry 2 <alexherbo2@gmail.com>2020-09-16 20:39:14 +0200
committerAlex Leferry 2 <alexherbo2@gmail.com>2020-09-16 20:39:14 +0200
commitb5dd869fb11873217c752b382ff0f7a2e0cb4dee (patch)
tree034a0f4a8ffc4a2ee1a1f32fa32a5523df34f95c
parentda129e8dc705eb2fc71aba1f976f27fb66429160 (diff)
Remove the prompt script
-rw-r--r--README.md6
-rw-r--r--docs/recipes.md6
-rwxr-xr-xshare/kak/connect/prompt14
3 files changed, 2 insertions, 24 deletions
diff --git a/README.md b/README.md
index 713bb52..bc27f60 100644
--- a/README.md
+++ b/README.md
@@ -208,13 +208,9 @@ You can modify your shell [prompt][Prompt customization] to notify you whenever
**Example** – for Bash:
``` bash
-PS1="\$(~/.local/share/kak/connect/prompt)$PS1"
+PS1='$(test "$IN_KAKOUNE_CONNECT" && printf 🐈)$ '
```
-See [`share/kak/connect/prompt`].
-
-[`share/kak/connect/prompt`]: share/kak/connect/prompt
-
## Documentation
[Documentation]: #documentation
diff --git a/docs/recipes.md b/docs/recipes.md
index 8b7bc20..789e6ce 100644
--- a/docs/recipes.md
+++ b/docs/recipes.md
@@ -20,13 +20,9 @@ You can modify your shell [prompt][Prompt customization] to notify you whenever
**Example** – for Bash:
``` bash
-PS1="\$(~/.local/share/kak/connect/prompt)$PS1"
+PS1='$(test "$IN_KAKOUNE_CONNECT" && printf 🐈)$ '
```
-See [`share/kak/connect/prompt`].
-
-[`share/kak/connect/prompt`]: ../share/kak/connect/prompt
-
## Change directory
In complement to `:cd!` which syncs the client to your current working directory,
diff --git a/share/kak/connect/prompt b/share/kak/connect/prompt
deleted file mode 100755
index 86b7b2f..0000000
--- a/share/kak/connect/prompt
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-# Faces
-none='\033[0m'
-yellow='\033[33m'
-magenta='\033[35m'
-
-if [ -n "$KAKOUNE_SESSION" ] && [ -n "$KAKOUNE_CLIENT" ]; then
- printf "${magenta}${KAKOUNE_CLIENT}${none} at ${yellow}${KAKOUNE_SESSION}${none}"
-
-elif [ -n "$KAKOUNE_SESSION" ]; then
- printf "(${yellow}${KAKOUNE_SESSION}${none})"
-
-fi