Compare commits

..

No commits in common. "b25d305ca2793e9e811c47b92603596dd3cbd005" and "d7c3a23c0e6655dc655f86c08b4f3d88309d12c5" have entirely different histories.

View file

@ -4,8 +4,8 @@ alias n="nano"
# Change PHP CLI binary
alias phpa="sudo update-alternatives --config php"
# Restart all code-server processes. Sometimes it hangs on first startup
alias restart_vscode="sudo systemctl restart code-server@vlw.service"
# Kill all code-server processes. Sometimes it hangs on startup
alias kvscode="ps uxa | grep .vscode-server | awk '{print $2}' | xargs kill -9"
# +-------------------+
# | Directory & Files |
@ -161,15 +161,17 @@ gitf () {
gitf
;;
# Clear local branches that have no upstream on remote (cleanup)
"c")
git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D
;;
# Pull current branch from a remote (defaults to "origin"). "d" for download.
"d")
local remote="${2:-origin}"
git pull "$remote" $(git rev-parse --abbrev-ref HEAD)
git submodule update --recursive
# Delete local branches that used to be tracked on the remote but are now gone (deleted from remote)
git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D
;;
# Update all git submodules in this repo. "sd" for submodule download.
@ -230,4 +232,4 @@ tmx() {
fi
tmux new-session -s default
}
}