dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit bc07e18c27e65bd84490a18365c3bd29b3078fd0
parent acf829dc6d653b8a40604b2d44f38440dddaafc6
Author: dudley <pyratebeard@gmail.com>
Date:   Sun, 21 Aug 2016 18:46:56 +0100

modified prompt

Diffstat:
Mzsh/.zsh/functions/prompt_git_info | 4++--
Mzsh/.zsh/minimal-prompt.zsh | 20+++++++++++---------
2 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/zsh/.zsh/functions/prompt_git_info b/zsh/.zsh/functions/prompt_git_info @@ -1,5 +1,5 @@ if [ -n "$__CURRENT_GIT_BRANCH" ]; then - local s="${USER_LEVEL}-[%F{white}" + local s="-[" s+="$__CURRENT_GIT_BRANCH" case "$__CURRENT_GIT_BRANCH_STATUS" in ahead) @@ -15,7 +15,7 @@ if [ -n "$__CURRENT_GIT_BRANCH" ]; then if [ -n "$__CURRENT_GIT_BRANCH_IS_DIRTY" ]; then s+="⚡" fi - s+="${USER_LEVEL}]" + s+="]" printf "%s%s" $s fi \ No newline at end of file diff --git a/zsh/.zsh/minimal-prompt.zsh b/zsh/.zsh/minimal-prompt.zsh @@ -1,11 +1,12 @@ -# ██ -# ░██ -# ██████ ██████░██ -# ░░░░██ ██░░░░ ░██████ -# ██ ░░█████ ░██░░░██ -# ██ ░░░░░██░██ ░██ -# ██████ ██████ ░██ ░██ -# ░░░░░░ ░░░░░░ ░░ ░░ +# +# ______ ______ __ __ +# /\___ \\ ___\\ \/\ \ +# / / / / \ \__/ \ \_\ \ +# \/__/ / \___ \ \ _ \ +# / /_\_ /__/\ \ \ \ \ \ +# /\______\ \_____\ \_\ \_\ +# / / / / / / / / / +# \/______/\/_____/\/_/\/_/ # # ▓▓▓▓▓▓▓▓▓▓ # ░▓ author ▓ xero <x@xero.nu> @@ -15,4 +16,5 @@ # ░░░░░░░░░░ # #█▓▒░ minial prompt -PROMPT='${USER_LEVEL}[%F{white}%1~${USER_LEVEL}]$(prompt_git_info)── -%f ' +# PROMPT='${USER_LEVEL}[%F{white}%1~${USER_LEVEL}]$(prompt_git_info)── -%f ' +PROMPT='${USERNAME}@[${HOSTNAME}]:%1~$(prompt_git_info)%f# '