forked from brl/citadel
added some better dotfiles
This commit is contained in:
parent
b3bc747625
commit
28564efaf6
@ -12,6 +12,7 @@ SRC_URI += "\
|
|||||||
file://00-storage-tmpfiles.conf \
|
file://00-storage-tmpfiles.conf \
|
||||||
file://NetworkManager.conf \
|
file://NetworkManager.conf \
|
||||||
file://zram-swap.service \
|
file://zram-swap.service \
|
||||||
|
file://share/dot.vimrc \
|
||||||
"
|
"
|
||||||
|
|
||||||
dirs1777_remove = "${localstatedir}/volatile/tmp"
|
dirs1777_remove = "${localstatedir}/volatile/tmp"
|
||||||
@ -27,6 +28,7 @@ RDEPENDS_${PN} = "bash"
|
|||||||
|
|
||||||
do_install_append () {
|
do_install_append () {
|
||||||
install -m 0755 -d ${D}/storage
|
install -m 0755 -d ${D}/storage
|
||||||
|
install -m 0755 -d ${D}/realms
|
||||||
install -d ${D}${libdir}/sysctl.d
|
install -d ${D}${libdir}/sysctl.d
|
||||||
install -m 0755 -d ${D}${libexecdir}
|
install -m 0755 -d ${D}${libexecdir}
|
||||||
install -m 0755 -d ${D}${sysconfdir}/profile.d
|
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 0644 ${WORKDIR}/citadel-network.rules ${D}${sysconfdir}/udev/rules.d/
|
||||||
install -m 0755 ${WORKDIR}/citadel-ifconfig.sh ${D}${libexecdir}
|
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 /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/etc.conf
|
||||||
ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/home.conf
|
ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/home.conf
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/dev/root / auto defaults 1 1
|
/dev/root / auto defaults 1 1
|
||||||
/dev/mapper/citadel-storage /storage auto defaults 0 0
|
/dev/mapper/citadel-storage /storage auto defaults 0 0
|
||||||
/storage/citadel-state/var /var none bind 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
|
tmpfs /home tmpfs rw,nosuid,nodev,mode=755 0 0
|
||||||
|
22
meta-citadel/recipes-core/base-files/files/share/dot.bashrc
Normal file
22
meta-citadel/recipes-core/base-files/files/share/dot.bashrc
Normal 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'
|
11
meta-citadel/recipes-core/base-files/files/share/dot.profile
Normal file
11
meta-citadel/recipes-core/base-files/files/share/dot.profile
Normal 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
|
29
meta-citadel/recipes-core/base-files/files/share/dot.vimrc
Normal file
29
meta-citadel/recipes-core/base-files/files/share/dot.vimrc
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user