Skip to content

Commit

Permalink
Add pip install powerline to init_sys
Browse files Browse the repository at this point in the history
  • Loading branch information
yanqd0 committed Sep 22, 2020
1 parent f66d41a commit 5ca4dc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ if [ -d "$POWERLINE_HOME" ]
then
source "$POWERLINE_HOME/powerline/bindings/bash/powerline.sh"
export POWERLINE_HOME
powerline-daemon -q
alias pdb='python3 -m powerline.bindings.pdb'
else
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] $(date -Iseconds)\n\$ '
Expand Down
10 changes: 6 additions & 4 deletions init_sys.bash
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ case ${name} in
'Linux')
if [ "$(id -u)" == "0" ]
then # root
INSTALL="aptitude install"
INSTALL="apt-get install"
else # Not root
INSTALL="sudo aptitude install"
INSTALL="sudo apt-get install"
fi

packages=(${common[@]} ${debs[@]});;
packages=("${common[@]} ${debs[@]}");;
'Darwin')
INSTALL="brew install"
packages=(${common[@]} ${brews[@]});;
packages=("${common[@]} ${brews[@]}");;
*)
echo "Unsupported system: ${name}" 1>&2
exit 1;;
Expand All @@ -59,3 +59,5 @@ echo "Initialize ${name}..."

echo "$INSTALL" "${packages[@]}"
$INSTALL "${packages[@]}"

sudo pip3 install powerline-status psutil netifaces

0 comments on commit 5ca4dc2

Please sign in to comment.