From 215059cce6fd8ac51253bfe216d1527409c4cd69 Mon Sep 17 00:00:00 2001 From: Mastermindzh Date: Tue, 3 Dec 2019 08:53:23 +0100 Subject: [PATCH] added nvm + azure completion --- bash/.alias.sh | 1 + bash/.bashrc | 12 +++++++++++- dependencies/aur.txt | 1 + dependencies/pip.txt | 5 ++++- 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/bash/.alias.sh b/bash/.alias.sh index 7043441..c5cbc0a 100644 --- a/bash/.alias.sh +++ b/bash/.alias.sh @@ -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' diff --git a/bash/.bashrc b/bash/.bashrc index 9f75be5..4b10e71 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -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 diff --git a/dependencies/aur.txt b/dependencies/aur.txt index b2e6201..b0cfeac 100644 --- a/dependencies/aur.txt +++ b/dependencies/aur.txt @@ -12,3 +12,4 @@ xorg-xev networkmanager-l2tp snapd i3blocks-contrib +azure-cli diff --git a/dependencies/pip.txt b/dependencies/pip.txt index 48d0a7f..6c2e997 100644 --- a/dependencies/pip.txt +++ b/dependencies/pip.txt @@ -1 +1,4 @@ -powerline-shell \ No newline at end of file +powerline-shell +msrestazure +azure.common +azure.mgmt