parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
Replace the PS1 values with the following code block.
This is a gist. | |
This is not just any gist. | |
This is my first gist. | |
There are many first gists, but this one is my first. | |
I must master it as I must master my life. | |
Without me, my gist is useless. | |
Without this gist, I wouldn't have any gist. |
<?php | |
namespace app\assets; | |
use yii\web\AssetBundle; | |
class SweetAlertAsset extends AssetBundle | |
{ | |
public $sourcePath = '@npm/sweetalert2/dist'; |
name: SIMPLE ACTIONS | |
on: | |
pull_request: | |
branches: [ master, develop ] | |
jobs: | |
simple-job: | |
runs-on: ubuntu-latest |
# example of a simple alias structure | |
alias g-s='git status' | |
# examples of aliases that can take an argument | |
# create new branch | |
alias g-b='function new_branch(){ git checkout -b $1; }; new_branch' | |
# create new branch with 'feature/' prefix | |
alias g-feature='function feature_branch(){ git checkout -b feature/$1; }; feature_branch' |