Skip to content
Rajasegar Chandran edited this page Oct 5, 2019 · 5 revisions

Customization

Removing long username prompts

For example, if you don't want to include your context info (username@hostname) in the prompt string, you can comment out the prompt_context section in your theme file like below:

## Main prompt

build_prompt() {
    [[ ! -z ${AG_EMACS_DIR+x} ]] && prompt_emacsdir
    prompt_status
    #[[ -z ${AG_NO_HIST+x} ]] && prompt_histdt
    #[[ -z ${AG_NO_CONTEXT+x} ]] && prompt_context
    prompt_virtualenv
    prompt_dir
    prompt_git
    prompt_end
}
Clone this wiki locally