Skip to content

Commit

Permalink
feat(docker-gc): add support for docker-gc as a container
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

The project has been renamed to PulseBridge Prompt and the path in which it is saved
now exists at ~/.pulsebridge/prompt. Backward compatibility for restoring bookmarks
is not available. Please restore the bookmarks yourself by copying the bookmarks.sh
file from the ./backup/<DATE>/scripts/bookmarks.sh path to the
$PULSEBRIDGE_PROMPT/scripts/bookmarks.sh path.
  • Loading branch information
Deavon M. McCaffery committed Nov 29, 2016
1 parent daeed26 commit a73def0
Show file tree
Hide file tree
Showing 33 changed files with 141 additions and 110 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,5 @@ vnd/
# condo files
Condo.AssemblyInfo.cs

# uber backups
# prompt backups
backup/
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ node_js:
os:
- osx
after_success:
- tar -cvzf uber.tar.gz install.sh src/*
- tar -cvzf prompt.tar.gz install.sh src/*
- git config --global user.name 'release'
- git config --global user.email '[email protected]'
- npm run release
Expand All @@ -14,11 +14,11 @@ deploy:
api_key:
secure: XnwGUrfAkJ8axm9VGTA3doDGK2VYx7xkvGNyxlonaYG2MWkFeClVsdhriklIaoB91dw0ewxAEdtpE11/6B1uNSh2xB+6jv9KdkuMdX8kpf8WY+K+HoWP/JW0jWr5v7MHfvdt6px4cPlq6yfPHI9WRHYlOqFIT3B3nyIbkmIXrawOGZD85GoVP2JAeGebelbfIxHJFbrjhHdFRYJkZ6uFddMr+LNA56QLJvY2Jx0+qUi7b5mhoMU3xuqf1DG1jpTUN1cQsqiq9GzVZze/WOUFPRJ+uhULSxOcui6bvosX08qlzKK685BitdlvyfgJZW9KJTVad2tFD+KEtaOhRtGD/BD4pedExKrBanIBUR/JVSQbWsa8qKvFK+WKVH8KMOw4chdwbPV1h0z2VqZdADVqhE+kKORsBJptsP3vCqaclKCmej+Xsl3y/6bowXmnh4ymGqgMEG9AEMl8hLxc4IFfmMCnB0fYoCDvUl25XL5/TWI6L9pGa7XUAonaA/l+HwDOjUsTJUZ/NmNjxCErvzmi8YpK6rny3HXjb9Dv5lOszk450PKkcPMpHdXW9jgAKJs+b6GVuW7kRUryMHSV8rNgFzSYfkzcrDPvN0dYHj54QPH5jlnd2BeYrZjcp2XiEA5H2oSUV6NrdB2eH/SHLIpXvEj23k24/abxyQ9nfze9F9o=
file:
- uber.tar.gz
- prompt.tar.gz
on:
tags: true
deploy:
provider: script
script: git push https://[email protected]/pulsebridge/uber.git --follow-tags > /dev/null 2>&1
script: git push https://[email protected]/pulsebridge/prompt.git --follow-tags > /dev/null 2>&1
on:
branch: master
70 changes: 35 additions & 35 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

<a name="1.1.0"></a>
# [1.1.0](https://github.com/pulsebridge/uber/compare/v1.0.2...v1.1.0) (2016-11-14)
# [1.1.0](https://github.com/pulsebridge/prompt/compare/v1.0.2...v1.1.0) (2016-11-14)


### Bug Fixes

* **brew:** correct brew link ([34528d7](https://github.com/pulsebridge/uber/commit/34528d7))
* **brew:** correct brew link ([34528d7](https://github.com/pulsebridge/prompt/commit/34528d7))


### Features

* **nvm:** add support for nvm in place of direct node install ([5064c06](https://github.com/pulsebridge/uber/commit/5064c06))
* **nvm:** add support for nvm in place of direct node install ([5064c06](https://github.com/pulsebridge/prompt/commit/5064c06))



<a name="1.0.3"></a>
## [1.0.3](https://github.com/pulsebridge/uber/compare/v1.0.2...v1.0.3) (2016-08-23)
## [1.0.3](https://github.com/pulsebridge/prompt/compare/v1.0.2...v1.0.3) (2016-08-23)



Expand All @@ -28,38 +28,38 @@ All notable changes to this project will be documented in this file. See [standa

### Bug Fixes

* **dotnet:** ensure dotnet is on the path ([3dcdfef](https://github.com/pulsebridge/uber/commit/3dcdfef))
* **dotnet:** fix bad test for presence of dotnet ([bf2b137](https://github.com/pulsebridge/uber/commit/bf2b137))
* **editors:** install sublime-text3 instead of sublime-text2 ([6b560ba](https://github.com/pulsebridge/uber/commit/6b560ba))
* **git:** execute git flow init instead of git init in git-extensions ([f4e8db2](https://github.com/pulsebridge/uber/commit/f4e8db2))
* **git:** set the credential helper to osx keychain on darwin ([c454cb9](https://github.com/pulsebridge/uber/commit/c454cb9))
* **git:** use brew link overwrite to resolve issue where git did not link if xcode-beta was installed before uber ([3901fd9](https://github.com/pulsebridge/uber/commit/3901fd9))
* **install:** fix an issue where the bash_profile could be overwritten ([54bd849](https://github.com/pulsebridge/uber/commit/54bd849))
* **install:** fix usage order on success function ([caef0da](https://github.com/pulsebridge/uber/commit/caef0da))
* **install:** remove unnecessary installs; fix git-prompt ([5290719](https://github.com/pulsebridge/uber/commit/5290719))
* **install:** test for .bash_profile before backing up ([68987fa](https://github.com/pulsebridge/uber/commit/68987fa))
* **prompt:** fix echo of tests for completion handlers ([4baf9c0](https://github.com/pulsebridge/uber/commit/4baf9c0))
* **prompt:** use master of posh-git-sh ([1362289](https://github.com/pulsebridge/uber/commit/1362289))
* **xplat:** add check for darwin for themes ([3b28084](https://github.com/pulsebridge/uber/commit/3b28084))
* **xplat:** do not emit error messages caused by upgrading latest brew formulae ([a742941](https://github.com/pulsebridge/uber/commit/a742941))
* **dotnet:** ensure dotnet is on the path ([3dcdfef](https://github.com/pulsebridge/prompt/commit/3dcdfef))
* **dotnet:** fix bad test for presence of dotnet ([bf2b137](https://github.com/pulsebridge/prompt/commit/bf2b137))
* **editors:** install sublime-text3 instead of sublime-text2 ([6b560ba](https://github.com/pulsebridge/prompt/commit/6b560ba))
* **git:** execute git flow init instead of git init in git-extensions ([f4e8db2](https://github.com/pulsebridge/prompt/commit/f4e8db2))
* **git:** set the credential helper to osx keychain on darwin ([c454cb9](https://github.com/pulsebridge/prompt/commit/c454cb9))
* **git:** use brew link overwrite to resolve issue where git did not link if xcode-beta was installed before prompt ([3901fd9](https://github.com/pulsebridge/prompt/commit/3901fd9))
* **install:** fix an issue where the bash_profile could be overwritten ([54bd849](https://github.com/pulsebridge/prompt/commit/54bd849))
* **install:** fix usage order on success function ([caef0da](https://github.com/pulsebridge/prompt/commit/caef0da))
* **install:** remove unnecessary installs; fix git-prompt ([5290719](https://github.com/pulsebridge/prompt/commit/5290719))
* **install:** test for .bash_profile before backing up ([68987fa](https://github.com/pulsebridge/prompt/commit/68987fa))
* **prompt:** fix echo of tests for completion handlers ([4baf9c0](https://github.com/pulsebridge/prompt/commit/4baf9c0))
* **prompt:** use master of posh-git-sh ([1362289](https://github.com/pulsebridge/prompt/commit/1362289))
* **xplat:** add check for darwin for themes ([3b28084](https://github.com/pulsebridge/prompt/commit/3b28084))
* **xplat:** do not emit error messages caused by upgrading latest brew formulae ([a742941](https://github.com/pulsebridge/prompt/commit/a742941))


### Features

* **backup:** retain backups and avoid manipulating .ssh folder ([132af0a](https://github.com/pulsebridge/uber/commit/132af0a))
* **bookmark:** rename aliases for add/show bookmark ([602c12a](https://github.com/pulsebridge/uber/commit/602c12a))
* **completion:** add support for bash completion for gulp (if it is globally installed) ([f863b54](https://github.com/pulsebridge/uber/commit/f863b54))
* **dotnet:** replace dnx/dnvm with dotnet-cli ([bd6b182](https://github.com/pulsebridge/uber/commit/bd6b182))
* **editors:** use brew cask to install atom, visual studio code, sublime, and textmate (macOS only) ([e15dabc](https://github.com/pulsebridge/uber/commit/e15dabc))
* **editors:** use built-in cli for vscode, etc ([84d3012](https://github.com/pulsebridge/uber/commit/84d3012))
* **git:** add a git clone helper that automatically tracks all remote branches ([72495ae](https://github.com/pulsebridge/uber/commit/72495ae))
* **git:** add git-extras including line counts from repos ([7db9321](https://github.com/pulsebridge/uber/commit/7db9321))
* **git:** add shortcut for initializing git repos the right way ([7ae4f5c](https://github.com/pulsebridge/uber/commit/7ae4f5c))
* **git:** add support for bash-completion of git flow ([f95f834](https://github.com/pulsebridge/uber/commit/f95f834))
* **prompt:** add counts to the colorized git prompt ([d238f66](https://github.com/pulsebridge/uber/commit/d238f66))
* **prompt:** indicate (ssh) on prompt when connected to a remote ([ff4a33c](https://github.com/pulsebridge/uber/commit/ff4a33c))
* **prompt:** updated the git prompt to be colorized based on the current state ([71e66cc](https://github.com/pulsebridge/uber/commit/71e66cc))
* **theme:** updated the theme, prompt, and bashrc for improved colors ([b875434](https://github.com/pulsebridge/uber/commit/b875434))
* **utility:** add a do-repeat command which can be used to exec a cmd a set number of times ([736035d](https://github.com/pulsebridge/uber/commit/736035d))
* **xplat:** add checks for darwin for unique features ([deadbe9](https://github.com/pulsebridge/uber/commit/deadbe9))
* **xplat:** improve cross-platform capabilities ([acab311](https://github.com/pulsebridge/uber/commit/acab311))
* **backup:** retain backups and avoid manipulating .ssh folder ([132af0a](https://github.com/pulsebridge/prompt/commit/132af0a))
* **bookmark:** rename aliases for add/show bookmark ([602c12a](https://github.com/pulsebridge/prompt/commit/602c12a))
* **completion:** add support for bash completion for gulp (if it is globally installed) ([f863b54](https://github.com/pulsebridge/prompt/commit/f863b54))
* **dotnet:** replace dnx/dnvm with dotnet-cli ([bd6b182](https://github.com/pulsebridge/prompt/commit/bd6b182))
* **editors:** use brew cask to install atom, visual studio code, sublime, and textmate (macOS only) ([e15dabc](https://github.com/pulsebridge/prompt/commit/e15dabc))
* **editors:** use built-in cli for vscode, etc ([84d3012](https://github.com/pulsebridge/prompt/commit/84d3012))
* **git:** add a git clone helper that automatically tracks all remote branches ([72495ae](https://github.com/pulsebridge/prompt/commit/72495ae))
* **git:** add git-extras including line counts from repos ([7db9321](https://github.com/pulsebridge/prompt/commit/7db9321))
* **git:** add shortcut for initializing git repos the right way ([7ae4f5c](https://github.com/pulsebridge/prompt/commit/7ae4f5c))
* **git:** add support for bash-completion of git flow ([f95f834](https://github.com/pulsebridge/prompt/commit/f95f834))
* **prompt:** add counts to the colorized git prompt ([d238f66](https://github.com/pulsebridge/prompt/commit/d238f66))
* **prompt:** indicate (ssh) on prompt when connected to a remote ([ff4a33c](https://github.com/pulsebridge/prompt/commit/ff4a33c))
* **prompt:** updated the git prompt to be colorized based on the current state ([71e66cc](https://github.com/pulsebridge/prompt/commit/71e66cc))
* **theme:** updated the theme, prompt, and bashrc for improved colors ([b875434](https://github.com/pulsebridge/prompt/commit/b875434))
* **utility:** add a do-repeat command which can be used to exec a cmd a set number of times ([736035d](https://github.com/pulsebridge/prompt/commit/736035d))
* **xplat:** add checks for darwin for unique features ([deadbe9](https://github.com/pulsebridge/prompt/commit/deadbe9))
* **xplat:** improve cross-platform capabilities ([acab311](https://github.com/pulsebridge/prompt/commit/acab311))
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# uber
# PulseBridge Prompt

> A spectacular (BaSH) prompt for *nix distributions. (Only tested on OS X currently)
> A spectacular (BaSH) prompt for *nix distributions. (Only tested on macOS currently)
## Vitals

Expand All @@ -12,9 +12,9 @@ Discord | [![Join Voice][discord-image]][discord-url]

## Getting Started

### What is Uber?
### What is PulseBridge Prompt?

Uber is a prompt for BaSH on *nix distributions that includes a ton of useful functionality, including:
PulseBridge Prompt is a prompt for BaSH on *nix distributions that includes a ton of useful functionality, including:

* Two-line prompt that includes username, hostname, and current path
* Git prompt support (emit information about the current branch and status when in a git path)
Expand All @@ -30,27 +30,27 @@ Uber is a prompt for BaSH on *nix distributions that includes a ton of useful fu
Note: All "extensions" are implemented as sourced function calls, so it should not interfere with existing
customization (aside from the prompt).

### Using Uber
### Using PulseBridge Prompt

Installing Uber is a 3 step process:
Installing PulseBridge Prompt is a 3 step process:

1) Clone the repository:

``` bash
git clone https://github.com/pulsebridge/uber.git
git clone https://github.com/pulsebridge/prompt.git
```

2) Run the installer:

``` bash
cd uber
cd prompt
./install.sh
```

3) Open a new terminal window, or source the initialization script in the existing terminal:

``` bash
source $HOME/.uber/bashrc
source $HOME/.bash_profile
```

3) (Optional) Open the included Monokai theme (currently only supported on OS X):
Expand All @@ -59,10 +59,10 @@ source $HOME/.uber/bashrc
themes
```

**NOTE**: The installer simply creates a new folder (.uber) under the root folder, and copies all of the files there.
It will backup this folder to ./backup first. It wires up the "extensions" by adding a source command for $HOME/.uber/bashrc
to $HOME/.bash_profile. It will not duplicate itself, so you can re-run the installer to upgrade at any time. the
$HOME/.bash_profile is also backed up to ./backup/[date].bash_profile.
**NOTE**: The installer simply creates a new folder (.pulsebridge) under the home folder, and copies all of the files
there. It will backup this folder to ./backup first. It wires up the "extensions" by adding a source command for
$HOME/.pulsebridge/prompt/bashrc to $HOME/.bash_profile. It will not duplicate itself, so you can re-run the installer
to upgrade at any time. The $HOME/.bash_profile is also backed up to ./backup/[date]/.bash_profile.

## Copright and License

Expand All @@ -71,7 +71,7 @@ $HOME/.bash_profile is also backed up to ./backup/[date].bash_profile.
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg
[license]: LICENSE

[gitter-url]: //gitter.im/pulsebridge/uber
[gitter-url]: //gitter.im/pulsebridge/prompt
[gitter-image]:https://img.shields.io/badge/⊪%20gitter-join%20chat%20→-1dce73.svg

[discord-image]:https://img.shields.io/badge/discord-online-blue.svg
Expand Down
46 changes: 29 additions & 17 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
CLR_SUCCESS="\033[1;32m" # BRIGHT GREEN
CLR_CLEAR="\033[0m" # DEFAULT COLOR

PULSEBRIDGE_PROMPT="$HOME/.pulsebridge/prompt"

function success() {
echo -e "${CLR_SUCCESS}$1${CLR_CLEAR}"
}
Expand All @@ -13,23 +15,23 @@ backup_path="backup/$now"
success "Creating backup path : $pwd/backup/$now..."
mkdir -p "backup/$now" 1>/dev/null

if test -d ~/.uber; then
success "Backing up ~/.uber..."
cp -R ~/.uber/* "backup/$now" 1>/dev/null
if test -d $PULSEBRIDGE_PROMPT; then
success "Backing up $PULSEBRIDGE_PROMPT..."
cp -R $PULSEBRIDGE_PROMPT/* "backup/$now" 1>/dev/null

success "Removing ~/.uber..."
rm -rf ~/.uber 1>/dev/null
success "Removing $PULSEBRIDGE_PROMPT..."
rm -rf $PULSEBRIDGE_PROMPT 1>/dev/null
fi

success "Creating ~/.uber..."
mkdir -p ~/.uber 1>/dev/null
success "Creating $PULSEBRIDGE_PROMPT..."
mkdir -p $PULSEBRIDGE_PROMPT/bin 1>/dev/null

success "Installing uber to ~/.uber..."
cp -Rf src/* ~/.uber 1>/dev/null
success "Installing PulseBridge Prompt to $PULSEBRIDGE_PROMPT..."
cp -Rf src/* $PULSEBRIDGE_PROMPT 1>/dev/null

if test -f $backup_path/scripts/bookmarks.sh; then
success "Restoring bookmarks..."
cp -R $backup_path/uber/scripts/bookmarks.sh ~/.uber/scripts 1>/dev/null
cp -R $backup_path/scripts/bookmarks.sh $PULSEBRIDGE_PROMPT/scripts 1>/dev/null
fi

for template in template/*; do
Expand All @@ -47,17 +49,20 @@ done
LOCAL_PREFIX=/usr/local
BASH_COMPLETION=$LOCAL_PREFIX/etc/bash_completion.d
UNAME=$(uname)
UNAME_INSTALL="./install/install-$UNAME.sh"
UNAME_INSTALL="./uname/install-$UNAME.sh"

if test -f $UNAME_INSTALL; then
source $UNAME_INSTALL
fi

DOCKER_GC_NAME=docker-gc
DOCKER_GC_URI=https://raw.githubusercontent.com/spotify/docker-gc/master/docker-gc

GIT_PROMPT_NAME=git-prompt.sh
GIT_COMPLETE_NAME=git-flow-completion.bash
GIT_PROMPT_URI=https://raw.githubusercontent.com/lyze/posh-git-sh/master/$GIT_PROMPT_NAME
GIT_COMPLETE_URI=https://raw.githubusercontent.com/petervanderdoes/git-flow-completion/develop/$GIT_COMPLETE_NAME
UBER_COMPLETION=~/.uber/completions
PROMPT_COMPLETION=$PULSEBRIDGE_PROMPT/completions

if test -f "$BASH_COMPLETION/$GIT_COMPLETE_NAME"; then
success "Removing git flow bash completion..."
Expand All @@ -69,22 +74,29 @@ if test -f "$BASH_COMPLETION/$GIT_PROMPT_NAME"; then
sudo rm -rf "$BASH_COMPLETION/$GIT_PROMPT_NAME" 1>/dev/null
fi

if ! test -d "$UBER_COMPLETION"; then
mkdir -p "$UBER_COMPLETION" 1>/dev/null
if ! test -d "$PROMPT_COMPLETION"; then
mkdir -p "$PROMPT_COMPLETION" 1>/dev/null
fi

if type docker 1>/dev/null 2>&1; then
success "Discovered docker; downloading $DOCKER_GC_NAME..."
docker pull spotify/docker-gc
fi

success "Downloading better git-prompt..."
result=$(curl -s -L -D - "$GIT_PROMPT_URI" -o "$UBER_COMPLETION/$GIT_PROMPT_NAME" -# | grep "^HTTP/1.1" | head -n 1 | sed "s/HTTP.1.1 \([0-9]*\).*/\1/")
result=$(curl -s -L -D - "$GIT_PROMPT_URI" -o "$PROMPT_COMPLETION/$GIT_PROMPT_NAME" -# | grep "^HTTP/1.1" | head -n 1 | sed "s/HTTP.1.1 \([0-9]*\).*/\1/")

if test "$result" = "200"; then
success "Successfully installed git-prompt..."
chmod +x "PROMPT_COMPLETION/$GIT_PROMPT_NAME" 1>/dev/null 2>&1
fi

success "Downloading git-flow completion..."
result=$(curl -s -L -D - "$GIT_COMPLETE_URI" -o "$UBER_COMPLETION/$GIT_COMPLETE_NAME" -# | grep "^HTTP/1.1" | head -n 1 | sed "s/HTTP.1.1 \([0-9]*\).*/\1/")
result=$(curl -s -L -D - "$GIT_COMPLETE_URI" -o "$PROMPT_COMPLETION/$GIT_COMPLETE_NAME" -# | grep "^HTTP/1.1" | head -n 1 | sed "s/HTTP.1.1 \([0-9]*\).*/\1/")

if test "$result" = "200"; then
success "Successfully installed git-flow completion..."
chmod +x "$PROMPT_COMPLETION/$GIT_COMPLETE_NAME" 1>/dev/null 2>&1
fi

echo -e "${CLR_SUCCESS}"
Expand All @@ -93,4 +105,4 @@ echo "#######################################"
echo " PLEASE OPEN A NEW TERMINAL WINDOW"
echo "#######################################"
echo "#######################################"
echo -e "${CLR_CLEAR}"
echo -e "${CLR_CLEAR}"
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "uber",
"name": "prompt",
"version": "1.1.0",
"description": "A spectacular (BaSH) prompt for *nix distributions",
"main": "install.sh",
"repository": {
"type": "git",
"url": "https://github.com/pulsebridge/uber.git"
"url": "https://github.com/pulsebridge/prompt.git"
},
"scripts": {
"test": ". ./install.sh",
Expand All @@ -21,9 +21,9 @@
"author": "PulseBridge, Inc.",
"license": "MIT",
"bugs": {
"url": "https://github.com/pulsebridge/uber/issues"
"url": "https://github.com/pulsebridge/prompt/issues"
},
"homepage": "https://github.com/pulsebridge/uber#readme",
"homepage": "https://github.com/pulsebridge/prompt#readme",
"devDependencies": {
"standard-version": "^2.4.0"
}
Expand Down
14 changes: 11 additions & 3 deletions src/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export CLR_SSH_PROMPT=$CLR_BRIGHT_MAGENTA # COLOR OF THE PROMPT FOR SSH
export TERM=xterm-256color
export GREP_COLOR='1;32'
export CLICOLOR=1
alias grep="$(which grep) --color=auto"
alias grep="grep --color=auto"

# change ls colors to be more like original unix/linux
export LSCOLORS="ExGxBxDxCxEgEdxbxgxcxd"
Expand Down Expand Up @@ -68,16 +68,24 @@ if test -f /usr/share/bash-completion/bash_completion; then
source /usr/share/bash-completion/bash_completion
fi

PULSEBRIDGE_PROMPT=$HOME/.pulsebridge/prompt

# source completions
for completion in $HOME/.uber/completions/*; do
for completion in $PULSEBRIDGE_PROMPT/completions/*; do
source $completion
done

# source scripts
for script in $HOME/.uber/scripts/*.sh; do
for script in $PULSEBRIDGE_PROMPT/scripts/*.sh; do
source $script
done

# test for prompt bin
if test -d $PULSEBRIDGE_PROMPT/bin; then
# append prompt to path
export PATH=$PATH:$PULSEBRIDGE_PROMPT/bin
fi

# set the prompt
set-prompt

Expand Down
2 changes: 1 addition & 1 deletion src/scripts/Darwin/add-ssh-keys.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

if test -n "${UBER_DEBUG+1}"; then
if test -n "${PROMPT_DEBUG+1}"; then
echo 'add-ssh-keys'
fi
function add-ssh-keys() {
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/Darwin/flush-dns.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

if test -n "${UBER_DEBUG+1}"; then
if test -n "${PROMPT_DEBUG+1}"; then
echo 'flush-dns'
fi

Expand Down
2 changes: 1 addition & 1 deletion src/scripts/Darwin/git-extras.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

if test -n "${UBER_DEBUG+1}"; then
if test -n "${PROMPT_DEBUG+1}"; then
echo 'git-extras'
fi

Expand Down
Loading

0 comments on commit a73def0

Please sign in to comment.