-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bryan Grimes
committed
Jan 14, 2016
1 parent
9fb1c94
commit 334dd0c
Showing
7 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
powerline-shell.py | ||
*.py[co] | ||
config.py | ||
|
||
.DS_Store | ||
*sublime* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
def add_aws_profile_segment(powerline): | ||
import os | ||
|
||
aws_profile = os.environ.get('AWS_PROFILE') or \ | ||
os.environ.get('AWS_DEFAULT_PROFILE') | ||
|
||
if aws_profile: | ||
powerline.append(' aws:%s ' % os.path.basename(aws_profile), | ||
Color.AWS_PROFILE_FG, | ||
Color.AWS_PROFILE_BG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,6 @@ class Color(DefaultColor): | |
|
||
VIRTUAL_ENV_BG = 15 | ||
VIRTUAL_ENV_FG = 2 | ||
|
||
AWS_PROFILE_FG = 7 | ||
AWS_PROFILE_BG = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,6 @@ class Color(DefaultColor): | |
|
||
VIRTUAL_ENV_BG = 150 | ||
VIRTUAL_ENV_FG = 0 | ||
|
||
AWS_PROFILE_FG = 0 | ||
AWS_PROFILE_BG = 7 |