5 Commits
Author SHA1 Message Date
GeorgeSG 7c052872cc Change prompt to lambda 2023-11-14 09:26:21 +02:00
GeorgeSG f1e56ce98a Change bash prompt hostname to red 2023-11-14 09:26:21 +02:00
GeorgeSG d4a2c81fe0 add unstage alias 2023-11-14 09:26:10 +02:00
Georgi Gardev 6274ebc261 change file mode 2023-11-14 09:24:05 +02:00
Georgi Gardev 5436636128 add git conitnue aliases 2023-11-14 09:24:03 +02:00
3 changed files with 6 additions and 3 deletions
+2
View File
@@ -17,6 +17,8 @@ alias gcom="git checkout master"
alias gpom="git pull origin master"
alias gbd="git branch -D"
alias gm="git mergetool"
alias gmc="git merge --continue"
alias grc="git rebase --continue"
# tmux
alias tm="tmux -2 attach-session -t "default" || tmux -2 new-session -s \"default\""
Executable → Regular
+3 -3
View File
@@ -1,7 +1,7 @@
# Set prompt
IFS='.' read -ra split_hostname <<<$(hostname | tr '[:upper:]' '[:lower:]')
HOSTNAME=${split_hostname[0]}
PS1='\[\e[1;4;36m\]$HOSTNAME\[\e[1;0m\] \[\e[1;32m\]\w\[\e[m\]\[\e[1;0m\] \[\e[0m\] \[\e[1;0m\]'
PS1='\[\e[1;4;31m\]$HOSTNAME\[\e[1;0m\] \[\e[1;32m\]\w\[\e[m\]\[\e[1;0m\] λ\[\e[0m\] \[\e[1;0m\]'
export TERM=xterm-256color
shopt -s cdspell
@@ -56,8 +56,8 @@ export EDITOR='code -w'
# bash-git-prompt
GIT_PROMPT_ONLY_IN_REPO=1
GIT_PROMPT_START="\[\e[1;4;36m\]$HOSTNAME\[\e[1;0m\] \[\e[1;32m\]\w\[\e[m\]"
GIT_PROMPT_END="\[\e[1;m\] \[\e[1;m\]"
GIT_PROMPT_START="\[\e[1;4;31m\]$HOSTNAME\[\e[1;0m\] \[\e[1;32m\]\w\[\e[m\]"
GIT_PROMPT_END="\[\e[1;m\] λ \[\e[1;m\]"
# Disable deprecation warning on mac
+1
View File
@@ -23,6 +23,7 @@
undo = reset --soft HEAD^
squash = rebase --autostash -i
megasquash = "!f() { git rebase --autostash -i `git merge-base --fork-point HEAD master`; }; f"
unstage = restore --staged
# various pretty loggers from various places
l = log --pretty=oneline --abbrev-commit