improve session opening behavior

This commit is contained in:
Morgan Wattiez 2019-08-15 14:11:38 +02:00
parent 5d861c6390
commit 9d36592dac
3 changed files with 5 additions and 6 deletions

View File

@ -12,7 +12,7 @@ tell application "System Events"
click
if exists menu item "Connecter" of menu 1 then
click menu item "Connecter" of menu 1
return "Connecting..."
return "Connecting to Bluetooth device..."
else
key code 53 -- Close main BT drop down if Connect wasn't present
return "Connect menu was not found, are you already connected?"

View File

@ -1,7 +1,7 @@
docker_app=$(find /Applications/ \
-name "Docker.app" -maxdepth 1 -mindepth 1 -type d)
if [ -z "$docker_app" ]; then
echo "Installation of Docker for Mac"
echo 'Install Docker Desktop for Mac OS X'
curl -o ~/Downloads/Docker.dmg -sL https://download.docker.com/mac/stable/Docker.dmg
hdiutil verify ~/Downloads/Docker.dmg
hdiutil attach ~/Downloads/Docker.dmg -nobrowse

View File

@ -96,9 +96,11 @@ eval "$(fasd --init auto)"
#cm apply
# check if we have new jira issues
istherenewissues
case "$(uname -s)" in
Darwin)
echo 'Install Docker Desktop for Mac OS X'
~/.scripts/install_docker_for_mac.sh
unlink "$HOME/Library/Application Support/Code/User/settings.json"
ln -s "$HOME/.config/Code/User/settings.json" "$HOME/Library/Application Support/Code/User/settings.json"
@ -106,9 +108,6 @@ case "$(uname -s)" in
;;
esac
# check if we have new jira issues
istherenewissues
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! https://github.com/sdkman/sdkman-cli/issues/613
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$SDKMAN_DIR/bin/sdkman-init.sh" ]] && source "$SDKMAN_DIR/bin/sdkman-init.sh"