This file contains hidden or 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 code is distributed under the MIT License. | |
// Copyright (c) 2018 Felix Angelov. | |
// You can find the original at https://github.com/felangel/bloc. | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; | |
void main() { | |
Bloc.observer = AppBlocObserver(); | |
runApp(const App()); |
This file contains hidden or 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
#Esto debería ir en /etc/bash_completion.d/<cmd> | |
# sino en >> ~/.bashrc | |
if type complete &>/dev/null; then | |
_<cmd>_completion () { | |
local cur options #declara variables solo para esta función | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
options=$( <cmd> completion options $COMP_LINE ) | |
COMPREPLY=( $( compgen -W "$options" -- $cur ) ) | |
} | |
complete -F _<cmd>_completion <cmd> |
This file contains hidden or 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
#!/bin/bash | |
cd /opt | |
sudo git clone https://github.com/flutter/flutter.git -b alpha &> /dev/null & | |
echo "Bajate el Android Studio..." | |
xdg-open https://developer.android.com/studio/index.html | |
read -p "apreta enter cuando lo hayas bajado" | |
unzip Downloads/android-studio-ide-* -d /tmp/ | |
cd /tmp/android-studio | |
./bin/studio.sh | |
echo 'export PATH="$PATH:~/Android/Sdk/platform-tools:~/Android/Sdk/tools:/opt/flutter/bin/"' >> $HOME/.bashrc |
This file contains hidden or 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
#!/bin/bash | |
if [ "$(id -u)" != "0" ]; then | |
echo "Ejecutá con sudo, pls..." | |
exit 1 | |
fi | |
mkdir /tmp/dart_installer &> /dev/null | |
cd /tmp/dart_installer | |
rm -rf ./* | |
read -p "Version a instalar (https://www.dartlang.org/install mostrará la última versión estable disponible) en formato x.yy.z: " VERSION | |
#VERSION="1.24.2" |