build core, basic and go variants and add template
This commit is contained in:
24
core/shell/profile
Normal file
24
core/shell/profile
Normal 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
|
||||
Reference in New Issue
Block a user