build core, basic and go variants and add template

This commit is contained in:
Dietrich Rink
2023-06-01 00:54:51 +02:00
parent 76e695ebbb
commit dd67e62569
31 changed files with 800 additions and 2 deletions

24
core/shell/profile Normal file
View File

@@ -0,0 +1,24 @@
# Set editor
EDITOR='nvim'
alias vim='nvim'
alias vi='nvim'
# Configure history
HISTCONTROL=ignoreboth
unset HISTFILE
# Handy aliases
alias la='ls -A'
alias ll='la -l'
alias ..='cd ..'
alias e='exit'
# Git branch helper
git_branch_prompt() {
local branch="$(git branch --show-current 2> /dev/null)"
[[ -z "$branch" ]] || echo "[${branch}]"
}
# Colorful command prompt
PS1='\[\e[33m\][\[\e[0m\]\W\[\e[33m\]]\[\e[32m\]$(git_branch_prompt)\[\e[33m\]\$\[\e[37m\] '
trap 'printf \\e[0m' DEBUG