File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,14 @@ alias gpshm="git push origin master"
45
45
alias gpll=" git pull origin $@ "
46
46
alias gpllm=" git pull origin master"
47
47
alias gcom=" git checkout master"
48
+ # undo local commits
49
+ # https://stackoverflow.com/a/927386/775184
50
+ alias gulast=" git reset HEAD~"
51
+ # revert local changes
52
+ alias greset=" git reset --hard"
53
+
54
+ alias grestore=" git restore ."
55
+
48
56
49
57
50
58
# Trim new lines and copy to clipboard
Original file line number Diff line number Diff line change
1
+
2
+ brewPath="/usr/local/bin/brew"
3
+
4
+ if [ "$(uname)" = "Linux" ]; then
5
+ brewPath="/home/linuxbrew/.linuxbrew/bin"
6
+ fi
7
+
8
+ if [ ! -x "$(command -v brew)" ]; then
9
+ if [ -d "${brewPath}" ]; then
10
+ echo "adding ${brewPath} to PATH ..."
11
+
12
+ export PATH="${brewLinuxPath}:${PATH}"
13
+ fi
14
+ fi
You can’t perform that action at this time.
0 commit comments