nwinkler on master
added laravel completions Merge pull request #1452 from t… (compare)
$ alias | grep "'git " | sed -E "s/^alias ([a-zA-Z]*)='git .*$/\\1/" | xargs
git
in your case)... If you provide a PR that adds this function (e.g. find-aliases
) to the base
plugin, I'd be more than happy to merge this into Bash-it.
bash-it update
: By default, it pulls from origin
- so if your local clone is pointing to your own fork as origin
, that should work automatically. If not, you can set the BASH_IT_REMOTE
variable in your shell and it will pull from that instead. Using your fork as origin
is probably easier, though - that's how I use it as well.
Hi guys,
i run a script like: FOO_ENV_VARIABLE=int /usr/local/script.sh
and my script looks like:
termination(){
echo "Foo terminating...."
kill $pid
wait "$pid"
}
trap 'termination' INT
exec foo.java.application.MainClass &
pid=$!
wait $restorePID
and the goal is to execute 'termination' function and wait until proccess with pid
end when Ctrl+C pressed,
and only then close executing
It works when i run that script like a: bash foo.script
and then press Ctrl+C
it works, i see echo "Foo terminating"
in console.
but when i run that script as: FOO_ENV_VARIABLE=int /usr/local/script.sh
it does not works, i do not see echo "Foo terminating"
Could some please what should be changed in that script to make it works with a FOO_ENV_VARIABLE=int /usr/local/script.sh
~/.zshrc
file. My problem is that the colors codes in the string evaluate when the bootstrap script runs, but I need those colors to not be evaulated until the user logs in and the ~/.zshrc
file is read. More detail here: https://stackoverflow.com/questions/52415887/installing-oh-my-zsh-for-a-different-user-as-root-in-cloud-init-script
gc! --no-edit
? (equivalent to "git commit --amend --no-edit")declare -A migration8=(
[CSV_FILE]='professional-migration.csv'
[CSV_COLUMNS]='created_at,updated_at,job_title,years_of_experience,country,city,zip_code,street_address,id,company_id'
[TARGET_TABLE]='professionals'
[TARGET_COLUMNS]='created_at,updated_at,job_title,years_of_experience,country,city,zip_code,street_address,id,company_id'
)
declare -A migration9=(
[CSV_FILE]='professional-user-migration.csv'
[CSV_COLUMNS]='created_at,updated_at,first_name [null if blanks],last_name [null if blanks],email,phone_number [null if blanks],meta_id,meta_type,state'
[TARGET_TABLE]='users'
[TARGET_COLUMNS]='created_at,updated_at,first_name,last_name,email,phone_number,meta_id,meta_type,state'
)
declare -A migration10=(
[CSV_FILE]='professional-expertise-migration.csv'
[CSV_COLUMNS]='professional_id,expertise_id,created_at,updated_at'
[TARGET_TABLE]='professional_expertises'
[TARGET_COLUMNS]='professional_id,expertise_id,created_at,updated_at'
)
declare -A migration11=(
[CSV_FILE]='professional-language-migration.csv'
[CSV_COLUMNS]='professional_id,language_id,created_at,updated_at'
[TARGET_TABLE]='professional_languages'
[TARGET_COLUMNS]='professional_id,language_id,created_at,updated_at'
)
GLOBAL_TARGET_URL="postgresql://ben.wolfpack@localhost:5432/pof-api_development"
declare -n migration
for migration in ${!migration@}
do {
export CSV_FILE=${migration[CSV_FILE]}
export CSV_COLUMNS=${migration[CSV_COLUMNS]}
export TARGET_URL=${GLOBAL_TARGET_URL}
export TARGET_TABLE=${migration[TARGET_TABLE]}
export TARGET_COLUMNS=${migration[TARGET_COLUMNS]}
pgloader template.sql
} done
source "$BASH_IT"/completion/available/git.completion.bash
does the trick
;;
must be indented. Take a look at other example out in the wild, e.g. https://gist.github.com/drmalex07/298ab26c06ecf401f66c