mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2026-01-13 13:56:00 +01:00
Compare commits
2 commits
d7c3a23c0e
...
b25d305ca2
| Author | SHA1 | Date | |
|---|---|---|---|
| b25d305ca2 | |||
| 256f1fe105 |
1 changed files with 6 additions and 8 deletions
|
|
@ -4,8 +4,8 @@ alias n="nano"
|
||||||
|
|
||||||
# Change PHP CLI binary
|
# Change PHP CLI binary
|
||||||
alias phpa="sudo update-alternatives --config php"
|
alias phpa="sudo update-alternatives --config php"
|
||||||
# Kill all code-server processes. Sometimes it hangs on startup
|
# Restart all code-server processes. Sometimes it hangs on first startup
|
||||||
alias kvscode="ps uxa | grep .vscode-server | awk '{print $2}' | xargs kill -9"
|
alias restart_vscode="sudo systemctl restart code-server@vlw.service"
|
||||||
|
|
||||||
# +-------------------+
|
# +-------------------+
|
||||||
# | Directory & Files |
|
# | Directory & Files |
|
||||||
|
|
@ -161,17 +161,15 @@ gitf () {
|
||||||
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.
|
# Pull current branch from a remote (defaults to "origin"). "d" for download.
|
||||||
"d")
|
"d")
|
||||||
local remote="${2:-origin}"
|
local remote="${2:-origin}"
|
||||||
|
|
||||||
git pull "$remote" $(git rev-parse --abbrev-ref HEAD)
|
git pull "$remote" $(git rev-parse --abbrev-ref HEAD)
|
||||||
git submodule update --recursive
|
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.
|
# Update all git submodules in this repo. "sd" for submodule download.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue