From 713381156ac98c4c47cbc4fb6ee81c43ab545108 Mon Sep 17 00:00:00 2001 From: Hugo Wang Date: Sat, 30 May 2020 21:57:33 +0800 Subject: [PATCH] cicada: update to 0.9.12 (#5346) --- packages/cicada/build.sh | 4 ++-- packages/cicada/update-prompt.patch | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 packages/cicada/update-prompt.patch diff --git a/packages/cicada/build.sh b/packages/cicada/build.sh index 2c868cb18..25c0ac93d 100644 --- a/packages/cicada/build.sh +++ b/packages/cicada/build.sh @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/mitnk/cicada TERMUX_PKG_DESCRIPTION="A bash like Unix shell" TERMUX_PKG_MAINTAINER="Hugo Wang " TERMUX_PKG_LICENSE="MIT" -TERMUX_PKG_VERSION=0.9.11 +TERMUX_PKG_VERSION=0.9.12 TERMUX_PKG_SRCURL=https://github.com/mitnk/cicada/archive/v$TERMUX_PKG_VERSION.tar.gz -TERMUX_PKG_SHA256=a3755aab5c60887587e2e98d0786e7cbf03b9871e931d2a6a177aa093427253d +TERMUX_PKG_SHA256=6ae7063d586618ebf11d54bd45ffc27dc62933e7a58258c6ed1bfa3d16aa8508 TERMUX_PKG_BUILD_IN_SRC=true termux_step_pre_configure() { diff --git a/packages/cicada/update-prompt.patch b/packages/cicada/update-prompt.patch new file mode 100644 index 000000000..8e27d3a94 --- /dev/null +++ b/packages/cicada/update-prompt.patch @@ -0,0 +1,15 @@ +diff --git a/src/prompt/main.rs b/src/prompt/main.rs +index f27e9c5..e3bf353 100644 +--- a/src/prompt/main.rs ++++ b/src/prompt/main.rs +@@ -4,9 +4,7 @@ use crate::execute; + use crate::libs; + use crate::shell; + +-const DEFAULT_PROMPT: &str = "${COLOR_STATUS}$USER${RESET}\ +- @${COLOR_STATUS}$HOSTNAME${RESET}: \ +- ${COLOR_STATUS}$CWD${RESET}$ "; ++const DEFAULT_PROMPT: &str = "${COLOR_STATUS}>> $CWD${RESET}$ "; + use super::preset::apply_preset_item; + use super::preset::apply_pyenv; +