Ansible god!

Big rework!
Control stuffs with variables!
We still should do some movei'n around of roles before extending
features.
This commit is contained in:
2022-03-23 02:03:04 +01:00
parent 2c29be1b7b
commit a70d58f3f7
33 changed files with 447 additions and 104 deletions

15
roles/shell/files/aliases.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
which lsd>/dev/null
if [ "$?" = "0" ]; then
alias ls="lsd -h --color=auto --group-dirs first"
else
alias ls="ls -h --color=auto --group-directories-first"
fi
# ([ "$?" = "0" ] && \
# alias ls="lsd -h --color=auto --group-dirs first") || \
# alias ls="ls -h --color=auto --group-directories-first"
alias\
ll="ls -l"\
la="ls -a"\
diff="diff --color=auto"\
grep="grep --color=auto -n"

View File

@@ -0,0 +1,6 @@
--theme "Solarized (dark)"
--style "numbers,changes,header"
--map-syntax "*.ino:C++"
--decorations auto
--color auto
--tabs 2

16
roles/shell/files/env.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
export LS_COLORS='di=1;35:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rpm=90:*.png=35:*.gif=36:*.jpg=35:*.c=92:*.jar=33:*.py=93:*.h=90:*.txt=94:*.doc=104:*.docx=104:*.odt=104:*.csv=102:*.xlsx=102:*.xlsm=102:*.rb=31:*.cpp=92:*.sh=92:*.html=96:*.zip=4;33:*.tar.gz=4;33:*.mp4=105:*.mp3=106'
[ -d ~/.npm/node_modules/.bin ] && PATH=~/.npm/node_modules/.bin:$PATH
[ -d ~/.go/bin ] && PATH=~/.go/bin:$PATH
[ -d ~/.cargo/bin ] && PATH=~/.cargo/bin:$PATH
[ -d ~/.local/bin ] && PATH=~/.local/bin:$PATH
[ -d ~/.emacs.d/bin ] && PATH=~/.emacs.d/bin:$PATH
[ -e ~/.aliases ] && source ~/.aliases
export EDITOR=/usr/bin/vim
export HISTFILE=~/.histfile
export HISTSIZE=42069
export SAVEHIST=42069
export PAGER="less"
export BAT_CONFIG_PATH=~/.bat.conf
export GOPATH=~/.go
export PATH

View File

@@ -0,0 +1,13 @@
zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' max-errors 1
zstyle ':completion::complete:*' use-cache 1
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:git*+set-message:*' hooks untracked-git
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' unstagedstr '!'
zstyle ':vcs_info:*' stagedstr '+'
zstyle ':vcs_info:*' formats "%f%s(%F{red}%r/%b%f)%c "$'\n'" %F{#bb33bb}% %S%f"