Skip to content

Commit dd84f63

Browse files
committedAug 9, 2022
alias updated and added killport function
1 parent 0a21fa8 commit dd84f63

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed
 

Diff for: ‎alias.txt

+13-8
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,33 @@ alias gc="git commit"
2222
alias gcm="git commit -m"
2323
alias gps="git push"
2424
alias gpl="git pull"
25-
25+
alias gmps="git push --recurse-submodules=on-demand"
26+
alias gmpl="git pull --recurse-submodules"
2627

2728
alias updateMachine="sudo apt update -y && sudo apt upgrade -y && sudo apt full-upgrade -y"
2829
alias myjupyter="cd && cd learning/my_jupyter_works/ && source my_jupyter_works/bin/activate && jupyter notebook"
2930
alias mvnCleanInstallSkipTest="mvn clean install -DskipTests"
3031

31-
gmerge (){
32+
33+
#my alias function
34+
35+
killport () {
36+
PID=$(sudo lsof -t -i:$1)
37+
sudo kill -9 ${PID}
38+
}
39+
40+
gmerge () {
3241
git checkout $1 && git merge $2 && git pull && git push && git checkout $2
3342
}
3443

35-
#my alias function
3644
goto () {
3745
cd ~/workspace/
3846
if [ -d "$1" ]; then
3947
cd "$1"
4048
if [ -d "project" ]; then
4149
cd project/
42-
else
43-
echo "Directory 'Project' missing";
4450
fi
4551
else
46-
echo "Directory $1 not found."
52+
echo "Directory '$1' not found."
4753
fi
48-
}
49-
54+
}

0 commit comments

Comments
 (0)