Skip to content

Commit 6591d43

Browse files
authored
Merge pull request #4 from sourceboat/feature/artisan_autocompletion_and_bashrc_customization
Artisan auto completion and other quality of life improvements
2 parents b70324c + 2bf412e commit 6591d43

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

home/app/.bashrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
# useful aliases
22
alias ll='ls -la'
33
alias artisan="php artisan"
4+
5+
# prompt colors and short user display
6+
force_color_prompt=yes
7+
PS1='\[\033[1;36m\]\u\[\033[1;31m\]\[\033[1;32m\]:\[\033[1;35m\]\w\[\033[1;31m\]\$\[\033[0m\] '
8+
9+
# artisan autocompletion
10+
_artisan()
11+
{
12+
COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
13+
COMMANDS=`artisan --raw --no-ansi list | sed "s/[[:space:]].*//g"`
14+
COMPREPLY=(`compgen -W "$COMMANDS" -- "${COMP_WORDS[COMP_CWORD]}"`)
15+
return 0
16+
}
17+
complete -F _artisan artisan

0 commit comments

Comments
 (0)