mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Merge branch 'master' of https://github.com./Matir/skel
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -30,3 +30,6 @@
|
|||||||
path = dotfiles/tmux/tmux-logging
|
path = dotfiles/tmux/tmux-logging
|
||||||
url = https://github.com/tmux-plugins/tmux-logging.git
|
url = https://github.com/tmux-plugins/tmux-logging.git
|
||||||
fetchRecurseSubmodules = true
|
fetchRecurseSubmodules = true
|
||||||
|
[submodule "dotfiles/vim/pack/matir/start/syntastic"]
|
||||||
|
path = dotfiles/vim/pack/matir/start/syntastic
|
||||||
|
url = https://github.com/vim-syntastic/syntastic.git
|
||||||
|
|||||||
2
dotfiles/sqliterc
Normal file
2
dotfiles/sqliterc
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
.header on
|
||||||
|
.mode column
|
||||||
1
dotfiles/vim/pack/matir/start/syntastic
Submodule
1
dotfiles/vim/pack/matir/start/syntastic
Submodule
Submodule dotfiles/vim/pack/matir/start/syntastic added at 9f43dcb5a2
@@ -45,8 +45,6 @@ if $TERM ==? 'rxvt-unicode-256color'
|
|||||||
let g:solarized_use16=1
|
let g:solarized_use16=1
|
||||||
endif
|
endif
|
||||||
silent! colorscheme solarized8
|
silent! colorscheme solarized8
|
||||||
" Enable filetype support
|
|
||||||
filetype plugin indent on
|
|
||||||
" Default ASM syntax for ft support
|
" Default ASM syntax for ft support
|
||||||
let asmsyntax="nasm"
|
let asmsyntax="nasm"
|
||||||
" Allow file modelines
|
" Allow file modelines
|
||||||
@@ -142,3 +140,7 @@ command Unsmartquote %s/“\|”/"/g
|
|||||||
|
|
||||||
" Markdown options
|
" Markdown options
|
||||||
autocmd Filetype markdown set expandtab shiftwidth=4
|
autocmd Filetype markdown set expandtab shiftwidth=4
|
||||||
|
|
||||||
|
" Enable filetype support
|
||||||
|
" Needs to be at end of vimrc
|
||||||
|
filetype plugin indent on
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ PS1="%{$fg[black]%}[%{$fg[yellow]%}%h%{$fg[black]%}] %{%(!.$fg[red].$fg[green])%
|
|||||||
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
||||||
|
|
||||||
# Load prezto
|
# Load prezto
|
||||||
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
if [[ -z "${NO_ZPREZTO}" && -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
||||||
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
7
dotfiles/zshrc.d/crouton.zsh
Normal file
7
dotfiles/zshrc.d/crouton.zsh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
if command -v xiwi >/dev/null 2>&1; then
|
||||||
|
function xiwibg {
|
||||||
|
local tmpf=$(mktemp)
|
||||||
|
echo Logging to ${tmpf}
|
||||||
|
nohup xiwi "$@" >!${tmpf} 2>&1 &
|
||||||
|
}
|
||||||
|
fi
|
||||||
27
install.sh
27
install.sh
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
set -o shwordsplit 2>/dev/null || true # Make zsh behave like bash
|
||||||
|
|
||||||
case $(uname) in
|
case $(uname) in
|
||||||
Linux)
|
Linux)
|
||||||
@@ -48,17 +49,39 @@ prerequisites() {
|
|||||||
install_dotfile_dir() {
|
install_dotfile_dir() {
|
||||||
local SRCDIR="${1}"
|
local SRCDIR="${1}"
|
||||||
local dotfile
|
local dotfile
|
||||||
|
local submodule_prune="$(git submodule status -- "${SRCDIR}" 2>/dev/null | \
|
||||||
|
awk '{print $2}' | \
|
||||||
|
while read submod ; do
|
||||||
|
echo -n " -o -path ${BASEDIR}/${submod}"
|
||||||
|
done)"
|
||||||
find "${SRCDIR}" \( -name .git -o \
|
find "${SRCDIR}" \( -name .git -o \
|
||||||
-path "${SRCDIR}/private_dotfiles" -o \
|
-path "${SRCDIR}/private_dotfiles" -o \
|
||||||
-name install.sh -o \
|
-name install.sh -o \
|
||||||
-name README.md -o \
|
-name README.md -o \
|
||||||
-name .gitignore \) \
|
-name .gitignore \
|
||||||
|
${submodule_prune} \) \
|
||||||
-prune -o ${FINDTYPE} f -print | \
|
-prune -o ${FINDTYPE} f -print | \
|
||||||
while read dotfile ; do
|
while read dotfile ; do
|
||||||
local TARGET="${HOME}/.${dotfile#${SRCDIR}/}"
|
local TARGET="${HOME}/.${dotfile#${SRCDIR}/}"
|
||||||
mkdir -p `dirname "${TARGET}"`
|
mkdir -p $(dirname "${TARGET}")
|
||||||
ln -s -f "${dotfile}" "${TARGET}"
|
ln -s -f "${dotfile}" "${TARGET}"
|
||||||
done
|
done
|
||||||
|
git submodule status -- "${SRCDIR}" 2>/dev/null | \
|
||||||
|
awk '{print $2}' | \
|
||||||
|
while read submodule ; do
|
||||||
|
local FULLNAME="${BASEDIR}/${submodule}"
|
||||||
|
local TARGET="${HOME}/.${FULLNAME#${SRCDIR}/}"
|
||||||
|
mkdir -p $(dirname "${TARGET}")
|
||||||
|
if test -L "${TARGET}" ; then
|
||||||
|
if [ "$(readlink "${TARGET}")" != "${FULLNAME}" ] ; then
|
||||||
|
echo "${TARGET} points to $(readlink "${TARGET}") not ${FULLNAME}!" >/dev/stderr
|
||||||
|
fi
|
||||||
|
elif test -d "${TARGET}" ; then
|
||||||
|
echo "rm -rf ${TARGET}" >/dev/stderr
|
||||||
|
else
|
||||||
|
ln -s -f "${FULLNAME}" "${TARGET}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
install_basic_dir() {
|
install_basic_dir() {
|
||||||
|
|||||||
Reference in New Issue
Block a user