Commit 1487721e authored by Pavel Mashliakovskiy's avatar Pavel Mashliakovskiy 🤹🏻
Browse files

add git ompletion and prompt

parent 9dd2b1f4
......@@ -3,6 +3,27 @@
sudo apt install mc evolution evolution-ews chromium-browser git nodejs npm postgresql-client
```
#### Git addition
If completion (Tab after git command) or prompty (repo status in command prompt) not work:
```
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh
```
add lines below to `~./bashrc`
```
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
~/.git-prompt.sh
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWCOLORHINTS=true
GIT_PS1_UNTRACKEDFILES=true
PROMPT_COMMAND="__git_ps1 '\u@\h:\w' '\\$ '"
```
### Docker
if https://docs.docker.com/install/linux/docker-ce/ubuntu/ fail
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment