mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2026-04-12 23:29:39 +02:00
style(bash): move git alias to git section and top section heading
This commit is contained in:
parent
6d2f6956ff
commit
8e1c581da4
1 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
# +---------+
|
||||||
|
# | General |
|
||||||
|
# +---------+
|
||||||
|
|
||||||
# I'm lazy
|
# I'm lazy
|
||||||
alias e="exit"
|
alias e="exit"
|
||||||
alias n="nano"
|
alias n="nano"
|
||||||
|
|
@ -6,8 +10,6 @@ alias n="nano"
|
||||||
alias phpa="sudo update-alternatives --config php"
|
alias phpa="sudo update-alternatives --config php"
|
||||||
# Restart all code-server processes. Sometimes it hangs on first startup
|
# Restart all code-server processes. Sometimes it hangs on first startup
|
||||||
alias restart_vscode="sudo systemctl restart code-server@vlw.service"
|
alias restart_vscode="sudo systemctl restart code-server@vlw.service"
|
||||||
# Force undo and unstage the last commit from git and git remote
|
|
||||||
alias gitundo="git reset HEAD^ && git push origin +HEAD"
|
|
||||||
|
|
||||||
# +-------------------+
|
# +-------------------+
|
||||||
# | Directory & Files |
|
# | Directory & Files |
|
||||||
|
|
@ -180,6 +182,9 @@ mvf () {
|
||||||
# | Git |
|
# | Git |
|
||||||
# +-----+
|
# +-----+
|
||||||
|
|
||||||
|
# Force undo and unstage the last commit from git and git remote
|
||||||
|
alias gitundo="git reset HEAD^ && git push origin +HEAD"
|
||||||
|
|
||||||
# Short-hands for various git functions
|
# Short-hands for various git functions
|
||||||
gitf () {
|
gitf () {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue