added nvm + azure completion

This commit is contained in:
Rick van Lieshout 2019-12-03 08:53:23 +01:00
parent ee6d640ad2
commit 215059cce6
4 changed files with 17 additions and 2 deletions

View File

@ -27,6 +27,7 @@ alias dotnetnew="dotnet new webapi -o "
# git
alias gitremovelocalbranches='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d'
alias untangle-line-endings='find ./ -type f -exec dos2unix {} \;'
alias undo-commit='git reset --soft HEAD^'
## pacman and trizen
alias aur='trizen --noconfirm'

View File

@ -1,7 +1,7 @@
# if powerline-shell is available use it.
function _update_ps1() {
if hash powerline-shell 2>/dev/null; then
PS1=$(powerline-shell $?)
PS1=$(powerline-rs --shell bash $?)
fi
}
@ -11,6 +11,14 @@ function _update_ps1() {
source ~/.alias
source ~/.custom
source ~/.variables
source ~/lib/azure-cli/az.completion
# evals
eval "$(pyenv init -)"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
#... :P fancy stuffs
#screenfetch -t -A "UBUNTU"
@ -20,3 +28,5 @@ PS1='[\u@\h \W]\$ '
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
export PATH=$PATH:/home/mastermindzh/bin

View File

@ -12,3 +12,4 @@ xorg-xev
networkmanager-l2tp
snapd
i3blocks-contrib
azure-cli

View File

@ -1 +1,4 @@
powerline-shell
powerline-shell
msrestazure
azure.common
azure.mgmt