This is helpful if you've previously installed git from source on OSX, and other compilers can't find the correct path. You need to remove the current version of git, then re-install with brew.
- Check which git you're running:
which git
/* | |
* Magento 2 mixins for js files that return an object literal | |
* (based on https://alanstorm.com/the-curious-case-of-magento-2-mixins/) | |
* (for files that return an UIComponent: https://gist.github.com/alecarg/ed0516132e9c8a31c66f13fbccd292cf) | |
* (for files that return a function: ) | |
*/ | |
define([ | |
'mage/utils/wrapper' | |
], function (wrapper) { |
#!/bin/sh | |
set -e | |
# First we are going to make sure that you understand this is sort of experimental and we will be compiling stuff. | |
# by default CONTINUE will be false | |
CONTINUE=false | |
echo "" | |
echo "You are about to download, compile, and install stuff on your computer." |
""" | |
Create a spinning cursor or progress bar in terminal can be useful | |
for some scripts. | |
1. Use '\r' to move cursor back to the line beginning. Or use '\b' | |
to erase the last character. | |
2. The standard out of Python is buffered, which means it will | |
collect some data written to standard out before it actually | |
writes to the terminal. | |
The code snippet |
This is helpful if you've previously installed git from source on OSX, and other compilers can't find the correct path. You need to remove the current version of git, then re-install with brew.
which git
cd repository | |
git checkout --orphan orphan_name | |
git rm -rf . | |
rm '.gitignore' | |
echo "#Title of Readme" > README.md | |
git add README.md | |
git commit -a -m "Initial Commit" | |
git push origin orphan_name |
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
[user] | |
name = Pavan Kumar Sunkara | |
email = [email protected] | |
username = pksunkara | |
[init] | |
defaultBranch = master | |
[core] | |
editor = nvim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
pager = delta |