This commit is contained in:
ge
2024-09-15 14:12:48 +03:00
commit 9d7c62684f
34 changed files with 464 additions and 0 deletions

View File

@ -0,0 +1,3 @@
# Ansible managed
[ -f ~/.bashrc ] && . ~/.bashrc

View File

@ -0,0 +1,31 @@
# Ansible managed
[ -f ~/.profile ] && . ~/.profile
[ -f ~/.profile.extra ] && . ~/.profile.extra
alias grep='grep --color=auto'
alias diff='diff --color=auto'
alias ls='ls -F --color=auto'
alias l='ls -hl'
alias ll='ls -alh'
alias tree='tree -F'
alias qq='history -c; exit'
shopt -s autocd
shopt -s histappend
HISTCONTROL=ignoreboth
HISTSIZE=20000
HISTFILESIZE=20000
HISTTIMEFORMAT="%d %b %Y %T %z "
if [ "$EUID" -eq 0 ]; then
if [ -f /etc/armbian-release ]; then
PS1='\[\033[38;5;208;1m\]\u@\H\[\033[00m\]:\w\[\033[00m\]\$ '
else
PS1='\[\033[1m\]\u@\H\[\033[00m\]:\w\[\033[00m\]\$ '
fi
else
PS1='\u@\H:\w\$ '
fi

View File

@ -0,0 +1,7 @@
# Ansible managed
PATH=$HOME/.local/bin:$PATH
EDITOR=vim
VISUAL=vim
LESS=-R
export PATH EDITOR VISUAL LESS

View File

@ -0,0 +1,5 @@
# Ansible managed
startup_message off
hardstatus alwayslastline
hardstatus string '%S: %-w%>(%n %t)%{-}%+w%<'

View File

@ -0,0 +1,20 @@
" Ansible managed
colorscheme default
filetype plugin on
syntax on
let python_highlight_all = 1
set mouse-=a
set tabstop=4
set shiftwidth=4
set smarttab
set expandtab
set softtabstop=4
set autoindent
set listchars=tab:▸\ ,trail:·
set list
set t_Co=256
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
set modeline

View File

@ -0,0 +1,26 @@
- name: Copy dotfiles
ansible.builtin.copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: root
group: root
mode: 0644
with_items:
- { src: 'dot.vimrc', dest: '/etc/skel/.vimrc' }
- { src: 'dot.screenrc', dest: '/etc/skel/.screenrc' }
- { src: 'dot.profile', dest: '/etc/skel/.profile' }
- { src: 'dot.bashrc', dest: '/etc/skel/.bashrc' }
- { src: 'dot.bash_profile', dest: '/etc/skel/.bash_profile' }
- { src: 'dot.vimrc', dest: '/root/.vimrc' }
- { src: 'dot.screenrc', dest: '/root/.screenrc' }
- { src: 'dot.profile', dest: '/root/.profile' }
- { src: 'dot.bashrc', dest: '/root/.bashrc' }
- { src: 'dot.bash_profile', dest: '/root/.bash_profile' }
- name: Remove unwanted dotfiles
ansible.builtin.file:
path: "{{ item }}"
state: absent
with_items:
- /etc/skel/.bash_logout
- /root/resize.log