added some better dotfiles

This commit is contained in:
Bruce Leidl 2018-03-18 19:24:30 -04:00
parent b3bc747625
commit 28564efaf6
5 changed files with 67 additions and 0 deletions

View File

@ -12,6 +12,7 @@ SRC_URI += "\
file://00-storage-tmpfiles.conf \
file://NetworkManager.conf \
file://zram-swap.service \
file://share/dot.vimrc \
"
dirs1777_remove = "${localstatedir}/volatile/tmp"
@ -27,6 +28,7 @@ RDEPENDS_${PN} = "bash"
do_install_append () {
install -m 0755 -d ${D}/storage
install -m 0755 -d ${D}/realms
install -d ${D}${libdir}/sysctl.d
install -m 0755 -d ${D}${libexecdir}
install -m 0755 -d ${D}${sysconfdir}/profile.d
@ -54,6 +56,8 @@ do_install_append () {
install -m 0644 ${WORKDIR}/citadel-network.rules ${D}${sysconfdir}/udev/rules.d/
install -m 0755 ${WORKDIR}/citadel-ifconfig.sh ${D}${libexecdir}
install -m 0755 ${WORKDIR}/share/dot.vimrc ${D}${sysconfdir}/skel/.vimrc
ln -s /storage/citadel-state/resolv.conf ${D}${sysconfdir}/resolv.conf
ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/etc.conf
ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/home.conf

View File

@ -1,4 +1,5 @@
/dev/root / auto defaults 1 1
/dev/mapper/citadel-storage /storage auto defaults 0 0
/storage/citadel-state/var /var none bind 0 0
/storage/realms /realms none bind 0 0
tmpfs /home tmpfs rw,nosuid,nodev,mode=755 0 0

View File

@ -0,0 +1,22 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
fgc() {
printf "\e[38;5;${1}m"
}
bgc() {
resetc
printf "\e[48;5;${1}m"
}
resetc() {
printf "\e[0m"
}
export PS1="$(bgc 253)$(fgc 53)citadel$(bgc 253):\w \\$`resetc` "
umask 022
export LS_OPTIONS='--color=auto'
eval `dircolors`
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'

View File

@ -0,0 +1,11 @@
# ~/.profile: executed by Bourne-compatible login shells.
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# path set by /etc/profile
# export PATH
# Might fail after "su - myuser" when /dev/tty* is not writable by "myuser".
mesg n 2>/dev/null

View File

@ -0,0 +1,29 @@
syntax on
set nocompatible
set hidden
set modeline
"
" Settings
"
set noerrorbells " No beeps
set backspace=indent,eol,start " Makes backspace key more powerful.
set showcmd " Show me what I'm typing
set showmode " Show current mode.
set noswapfile " Don't use swapfile
set nobackup " Don't create annoying backup files
set splitright " Split vertical windows right to the current windows
set splitbelow " Split horizontal windows below to the current windows
set encoding=utf-8 " Set default encoding to UTF-8
set autowrite " Automatically save before :next, :make etc.
set autoread " Automatically reread changed files without asking me anything
set nocursorcolumn
set lazyredraw " Wait to redraw "
set incsearch " Shows the match while typing
set hlsearch " Highlight found searches
set ignorecase " Search case insensitive...
set smartcase " ... but not when search pattern contains upper case characters
set ttyfast