Skip to content

Commit 6de9125

Browse files
committed
alias file added
1 parent d77ed08 commit 6de9125

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

alias.txt

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#my aliases
2+
alias cl="clear"
3+
alias dcstart="docker-compose up -d"
4+
alias dcstop="docker-compose stop"
5+
alias dcedit="vim docker-compose.yml"
6+
alias bashedit="cd && vim .bashrc"
7+
alias bashrs="cd && source .bashrc"
8+
alias pf="poweroff"
9+
10+
#git aliases
11+
12+
alias gs="git status"
13+
alias gb="git branch"
14+
alias grl="git reflog"
15+
alias gl="git log"
16+
alias ga="git add ."
17+
alias gc="git commit"
18+
alias gcm="git commit -m"
19+
alias gps="git push"
20+
alias gpl="git pull"
21+
22+
gmerge (){
23+
git checkout $1 && git merge $2 && git pull && git push && git checkout $2
24+
}
25+
26+
#my alias function
27+
goto () {
28+
cd ~/workspace/
29+
if [ -d "$1" ]; then
30+
cd "$1"
31+
if [ -d "project" ]; then
32+
cd project/
33+
else
34+
echo "Directory 'Project' missing";
35+
fi
36+
else
37+
echo "Directory $1 not found."
38+
fi
39+
}
40+
41+

0 commit comments

Comments
 (0)