added code for bash prompt; added more bash_profile cmds for falcon
This commit is contained in:
parent
f38402b73a
commit
6368b6e9ae
2 changed files with 28 additions and 2 deletions
|
@ -39,9 +39,15 @@ alias {{ $key }}="{{ $value }}"
|
|||
{{- end -}}
|
||||
{{ print "" }}
|
||||
{{ print "" }}
|
||||
# Prompt
|
||||
# Bash Prompt
|
||||
|
||||
# External Sources
|
||||
HOSTNAME_BG="$(tput setab 68)"
|
||||
GREY_BG="$(tput setab 240)"
|
||||
RESET="$(tput sgr0)"
|
||||
FILEPATH_TC="$(tput setaf 81)"
|
||||
WHITE_TC="$(tput setaf 255)"
|
||||
PS1='${HOSTNAME_BG}${WHITE_TC}\033[1m \H ${GREY_BG} \u • ${FILEPATH_TC}\w ${RESET}\n\$ '
|
||||
PS2=" -> "
|
||||
|
||||
# Commands
|
||||
{{ print "" }}
|
||||
|
|
|
@ -96,6 +96,26 @@
|
|||
{
|
||||
"command": "set -o vi",
|
||||
"description": "Activate vi mode."
|
||||
},
|
||||
{
|
||||
"command": ". /usr/share/bash-completion/bash_completion",
|
||||
"description": "Ensure that programmable completion features are enabled."
|
||||
},
|
||||
{
|
||||
"command": "source /usr/share/bash-completion/completions/git",
|
||||
"description": "Enable bash completion for git"
|
||||
},
|
||||
{
|
||||
"command": "complete -o bashdefault -o default -o nospace -F __git_wrap__git_main g",
|
||||
"description": "Enable bash completion for the g alias"
|
||||
},
|
||||
{
|
||||
"command": "source <(gopass completion bash)",
|
||||
"description": "Enable bash completion for gopass"
|
||||
},
|
||||
{
|
||||
"command": "eval \"$(SHELL=/bin/sh lesspipe)\"",
|
||||
"description": "Make less more friendly for non-text input files"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue