Merge pull request #635 from was4444/master
add system default completion
This commit is contained in:
5
completion/available/system.completion.bash
Normal file
5
completion/available/system.completion.bash
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ -f /etc/bash_completion ];
|
||||||
|
. /etc/bash_completion
|
||||||
|
fi
|
||||||
28
themes/morris/morris.theme.bash
Normal file
28
themes/morris/morris.theme.bash
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
|
||||||
|
# prompt theming
|
||||||
|
|
||||||
|
# added TITLEBAR for updating the tab and window titles with the pwd
|
||||||
|
case $TERM in
|
||||||
|
xterm*)
|
||||||
|
TITLEBAR=$(printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}")
|
||||||
|
;;
|
||||||
|
screen)
|
||||||
|
TITLEBAR=$(printf "\033]0;%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}")
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
TITLEBAR=""
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
function prompt_command() {
|
||||||
|
PS1="${TITLEBAR}[\u@\h \W $(scm_prompt_info)]\$ "
|
||||||
|
}
|
||||||
|
|
||||||
|
# scm theming
|
||||||
|
SCM_THEME_PROMPT_DIRTY=" ${red}✗"
|
||||||
|
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
|
||||||
|
SCM_THEME_PROMPT_PREFIX="${green}("
|
||||||
|
SCM_THEME_PROMPT_SUFFIX="${green})${reset_color}"
|
||||||
|
|
||||||
|
|
||||||
|
PROMPT_COMMAND=prompt_command;
|
||||||
Reference in New Issue
Block a user