diff options
| author | Alex Leferry 2 <alexherbo2@gmail.com> | 2020-09-16 20:39:14 +0200 |
|---|---|---|
| committer | Alex Leferry 2 <alexherbo2@gmail.com> | 2020-09-16 20:39:14 +0200 |
| commit | b5dd869fb11873217c752b382ff0f7a2e0cb4dee (patch) | |
| tree | 034a0f4a8ffc4a2ee1a1f32fa32a5523df34f95c | |
| parent | da129e8dc705eb2fc71aba1f976f27fb66429160 (diff) | |
Remove the prompt script
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | docs/recipes.md | 6 | ||||
| -rwxr-xr-x | share/kak/connect/prompt | 14 |
3 files changed, 2 insertions, 24 deletions
@@ -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 |
