Created
March 2, 2017 22:15
-
-
Save mtimkovich/6333bb60e1d8c8ee48b719fb1da9b995 to your computer and use it in GitHub Desktop.
This file contains 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
PS1="[\u@\h \W]\$ " | |
alias ..="cd .." | |
alias ls="ls -GAF" | |
alias cp='cp -vi' | |
alias mv='mv -vi' | |
alias rm='rm -vi' | |
mdc() | |
{ | |
mkdir -p "$1" && cd "$1" | |
} | |
up() | |
{ | |
for i in $(seq 1 $1); do cd ..; done | |
} | |
fco() | |
{ | |
branch=$(git branch -r | grep -i $1 | sed 's#origin/##') | |
if [ $(git branch -r | grep -ic $1) != 1 ] | |
then | |
echo "No such branch '$1'" | |
else | |
git checkout $branch | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment