Initial Commit; Removed all previous commits to protect sensitive data
This commit is contained in:
commit
de2ed90659
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
|
6
LICENCE
Normal file
6
LICENCE
Normal file
@ -0,0 +1,6 @@
|
||||
Copyright (C) 2013 Faerbit
|
||||
|
||||
"THE BEER-WARE LICENSE" (Revision 42):
|
||||
Faerbit wrote this file. As long as you retain this notice you
|
||||
can do whatever you want with this stuff. If we meet some day, and you think
|
||||
this stuff is worth it, you can buy me a beer in return. Faerbit
|
15
Makefile
Normal file
15
Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
all: symlinks setup-vim
|
||||
|
||||
symlinks:
|
||||
chmod +x make_symlinks.sh
|
||||
./make_symlinks.sh
|
||||
|
||||
setup-vim:
|
||||
mkdir -p ../.vim
|
||||
cp -r vim/* ../.vim
|
||||
chmod +x ../.vim/custom_make.sh
|
||||
cd ../.vim/bundle; make -f Makefile init
|
||||
|
||||
sensitive:
|
||||
multigpg extract zsh_sensitive.tar.gpg zsh_sensitive
|
||||
mv zsh_sensitive ../.zsh_sensitive
|
9
README.md
Normal file
9
README.md
Normal file
@ -0,0 +1,9 @@
|
||||
#dotfiles
|
||||
|
||||
These are my personal dotfiles.
|
||||
|
||||
To deploy them I clone this repo and just run the Makefile.
|
||||
|
||||
##License
|
||||
|
||||
This is Beerware, see LICENCE for details.
|
10
gitconfig
Normal file
10
gitconfig
Normal file
@ -0,0 +1,10 @@
|
||||
[user]
|
||||
name = Faerbit
|
||||
email = faerbit@server.fake
|
||||
[credential]
|
||||
helper = cache
|
||||
[push]
|
||||
default = simple
|
||||
[core]
|
||||
editor = vim -c 'startinsert'
|
||||
excludesfile = ~/.globalgitignore
|
1
globalgitignore
Normal file
1
globalgitignore
Normal file
@ -0,0 +1 @@
|
||||
*.swp
|
7
make_symlinks.sh
Executable file
7
make_symlinks.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
test -f ../.zshrc || ln -s .dotfiles/zshrc ../.zshrc
|
||||
test -f ../.zsh_functions || ln -s .dotfiles/zsh_functions ../.zsh_functions
|
||||
test -f ../.vimrc || ln -s .dotfiles/vimrc ../.vimrc
|
||||
test -f ../.gitconfig || ln -s .dotfiles/gitconfig ../.gitconfig
|
||||
test -f ../.globalgitignore || ln -s .dotfiles/globalgitignore ../.globalgitignore
|
11
vim/bundle/Makefile
Normal file
11
vim/bundle/Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
all: update
|
||||
|
||||
init:
|
||||
git init
|
||||
test -d tlib || git submodule add https://github.com/tomtom/tlib_vim.git tlib
|
||||
test -d addon-mw-utils || git submodule add https://github.com/MarcWeber/vim-addon-mw-utils.git addon-mw-utils
|
||||
test -d snipmate || git submodule add https://github.com/garbas/vim-snipmate.git snipmate
|
||||
test -d snippets || git submodule add https://github.com/honza/vim-snippets.git snippets
|
||||
|
||||
update:
|
||||
git submodule update
|
28
vim/custom_make.sh
Normal file
28
vim/custom_make.sh
Normal file
@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
done=false
|
||||
|
||||
until $done
|
||||
do
|
||||
if [ -f Makefile ]
|
||||
then
|
||||
echo "Executing $(pwd)/Makefile:"
|
||||
make
|
||||
done=true
|
||||
break
|
||||
fi
|
||||
if [ -d .git ]
|
||||
then
|
||||
echo "Didn't find a makefile in this repository. Aborting."
|
||||
done=true
|
||||
break
|
||||
fi
|
||||
if [ $(pwd) = '/' ]
|
||||
then
|
||||
echo "Didn't find a makefile. Aborting."
|
||||
done=true
|
||||
break
|
||||
fi
|
||||
cd ..
|
||||
echo "Entering super directory: $(pwd)"
|
||||
done
|
30
vimrc
Normal file
30
vimrc
Normal file
@ -0,0 +1,30 @@
|
||||
set background=dark
|
||||
set autoindent
|
||||
set number
|
||||
set tabstop=4
|
||||
set softtabstop=4
|
||||
set shiftwidth=4
|
||||
set incsearch
|
||||
set hlsearch
|
||||
set expandtab
|
||||
set foldmethod=indent
|
||||
set nofoldenable
|
||||
set foldlevel=99
|
||||
set autowrite
|
||||
set cmdheight=2
|
||||
set wildmode=longest,list,full
|
||||
set wildmenu
|
||||
syntax on
|
||||
filetype plugin indent on
|
||||
"Change working dir to current dir
|
||||
:cd %:p:h
|
||||
:nmap <F9> :! ~/.vim/custom_make.sh<cr>
|
||||
"only execute pathogen if it exists
|
||||
runtime! autoload/pathogen.vim
|
||||
if exists("*pathogen#infect")
|
||||
execute pathogen#infect()
|
||||
endif
|
||||
"Split view if multiple files are opened
|
||||
if argc() == 2
|
||||
silent vertical all
|
||||
endif
|
42
zsh_functions
Normal file
42
zsh_functions
Normal file
@ -0,0 +1,42 @@
|
||||
copy_img_to_usb(){
|
||||
if [[ $1 = "" ]]
|
||||
then
|
||||
return 1
|
||||
fi
|
||||
FILE=$1
|
||||
FILESIZE=$(stat -c%s "$1")
|
||||
TARGET=$2
|
||||
lsblk
|
||||
echo "Are you sure you want to copy $FILE to $TARGET?"
|
||||
read
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
sudo umount $TARGET?*
|
||||
dd bs=4M if=$FILE | pv -s $FILESIZE | sudo dd of=$TARGET && sync
|
||||
fi
|
||||
}
|
||||
|
||||
cdtemp(){
|
||||
local tmpfolder=$(mktemp -d)
|
||||
cd $tmpfolder
|
||||
aliasstring="change_dir $tmpfolder "
|
||||
#delete folder if cd out of it
|
||||
alias cd=$aliasstring
|
||||
}
|
||||
|
||||
#belongs to the cdtemp function
|
||||
change_dir(){
|
||||
#If no dir is specified go to home directory as expected
|
||||
if [[ $2 = "" ]]
|
||||
then
|
||||
cd
|
||||
else
|
||||
cd "$2"
|
||||
fi
|
||||
if [ ! $(expr match $(pwd) '\(/tmp/tmp.[a-zA-Z0-9]*\)') ]
|
||||
then
|
||||
echo "Deleting tmp folder $1."
|
||||
rm -rf "$1"
|
||||
unalias cd
|
||||
fi
|
||||
}
|
1
zsh_sensitive.tar.gpg
Normal file
1
zsh_sensitive.tar.gpg
Normal file
@ -0,0 +1 @@
|
||||
Œ
[újBÊñ SÓÒÀˆ56o˜&ŽHÖýw5íŠ-=D0ôlhå<68>U³^$k¯Q£þóq<C3B3>ŽM“R}ˆ g?9ly8QK‰wêJ16|Ë_ߣÎp|°Á(<0C>¥z”tE³õý”k=TjP.AeÜýì1 ½¦Ë%…eÖ[á[ÆÇýáéyMeÅ©)¬žIˉ¥mîo7}e<>'Ë¿#-<2D>;š·Nß]rMùhÂð¸ºÈ^ìAk\D¬Áœøfù²ês`,¼«Ég„Úžð´¶ZæfÝ„ ¡òæ´:ú}±_iàj´üD<1D>ŠÝʼnu‰õQ×åóÎTÏ:D‡Ë/)95ÌÙr´òÚ“åaAh•›‡ÊÀÆêTÏfÆ<66>ímîŠ7ÞZðå4„DLYƈú0ßÛc¨2G>V‰¦èjù ÂÖå|5
|
38
zshrc
Normal file
38
zshrc
Normal file
@ -0,0 +1,38 @@
|
||||
alias sudo='sudo '
|
||||
alias tasks="ps -u fab"
|
||||
alias update-grub="grub-mkconfig -o /boot/grub/grub.cfg"
|
||||
alias sml2p='/home/fab/.Sync-my-L2P/Sync-my-L2P.run'
|
||||
alias updatemirrors='reflector --verbose -p http -l 7 --sort rate --sort delay --country 'Germany' --save /etc/pacman.d/mymirrorlist'
|
||||
alias ssh='ssh '
|
||||
alias ping='ping '
|
||||
alias aur-update='yaourt -Sbu --aur --noconfirm'
|
||||
alias clear-orphans='pacman -Rns $(pacman -Qqdt)'
|
||||
alias rmtex='rm *.log; rm *.aux'
|
||||
alias ghibernate='gnome-screensaver-command --lock && sudo pm-hibernate'
|
||||
alias load-vboxdrivers='modprobe -a vboxdrv vboxnetadp vboxnetflt'
|
||||
#Now with extra shibe
|
||||
alias wow='git status'
|
||||
alias very='git'
|
||||
alias much='git'
|
||||
alias such='git'
|
||||
#Do not store commmands with leading space
|
||||
setopt HIST_IGNORE_SPACE
|
||||
#Do not store ls and cd
|
||||
alias cd=' cd'
|
||||
alias ls=' ls --color=auto'
|
||||
if [ -f .zsh_environment ]
|
||||
then
|
||||
source ~/.zsh_environment
|
||||
fi
|
||||
#for accounts whithout root
|
||||
if [ -f .zsh_grml ]
|
||||
then
|
||||
source ~/.zsh_grml
|
||||
fi
|
||||
#for untrusted machines
|
||||
if [ -f .zsh_sensitive ]
|
||||
then
|
||||
source ~/.zsh_sensitive
|
||||
fi
|
||||
source ~/.zsh_functions
|
||||
export EDITOR=vim
|
Loading…
Reference in New Issue
Block a user