organize the repo

remove unused files
create config file
update dotfiles
update ebuild
This commit is contained in:
Martinez 2015-12-26 16:00:20 +01:00
parent 1c38428f6b
commit 10345f6e3a
13 changed files with 178 additions and 975 deletions

View file

@ -0,0 +1,49 @@
defutf8 on
autodetach on
startup_message off
defscrollback 10240
# scroll through scrollback
termcapinfo xterm* ti@:te@
# let's get high-tech with 256 colors over here
#attrcolor b ".I" # allow bold colors - necessary for some reason
#termcapinfo xterm "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm" # tell screen how to set colors. AB = background, AF=foreground
defbce on # use current bg color for erased chars
# remapping dangerous keybindings
bind k
bind ^k
bind .
bind ^\
bind \\
bind ^h
bind h
bind 'K' kill
bind 'I' login on
bind 'O' login off
bind '}' history
# custom keybindings
bind '/' eval "scrollback 0" "scrollback 15000"
# status line
#backtick 1 5 5 true
#termcapinfo rxvt* 'hs:ts=\E]2;:fs=\007:ds=\E]2;\007'
#hardstatus string "screen (%n: %t)"
#caption string "%{= kw}%Y-%m-%d;%c %{= kw}%-Lw%{= kG}%{+b}[%n %t]%{-b}%{= kw}%+Lw%1`"
#caption always
# environment
setenv DISPLAY ":0"
# start with a bunch of windows
screen 0 sudo su -
screen 1 sudo ionice -c 3 nice su -
screen 2 sudo ionice -c 3 nice su -
screen 3 sudo ionice -c 3 nice su -
screen 4 sudo ionice -c 3 nice su -
screen 5 red-noise.sh
screen 6 syncthing -no-browser
screen 7 /home/overwatch/Research/old/Development/Et/et-dictionary/screen-wrapper.sh
screen 8 zsh

41
dotfiles/etc/zsh/zprofile Normal file
View file

@ -0,0 +1,41 @@
# /etc/zsh/zprofile
# $Id$
# Load environment settings from profile.env, which is created by
# env-update from the files in /etc/env.d
if [ -e /etc/profile.env ] ; then
. /etc/profile.env
fi
# You should override these in your ~/.zprofile (or equivalent) for per-user
# settings. For system defaults, you can add a new file in /etc/profile.d/.
export EDITOR=${EDITOR:-/bin/nano}
export PAGER=${PAGER:-/usr/bin/less}
# 077 would be more secure, but 022 is generally quite realistic
umask 022
# Set up PATH depending on whether we're root or a normal user.
# There's no real reason to exclude sbin paths from the normal user,
# but it can make tab-completion easier when they aren't in the
# user's PATH to pollute the executable namespace.
#
# It is intentional in the following line to use || instead of -o.
# This way the evaluation can be short-circuited and calling whoami is
# avoided.
if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}"
else
PATH="/usr/local/bin:/usr/bin:/bin:${PATH}:/home/${USER}/Apps/bin"
fi
export PATH
unset ROOTPATH
shopts=$-
setopt nullglob
for sh in /etc/profile.d/*.sh ; do
[ -r "$sh" ] && . "$sh"
done
unsetopt nullglob
set -$shopts
unset sh shopts

129
dotfiles/etc/zsh/zshrc Normal file
View file

@ -0,0 +1,129 @@
# bindkey -v # editor jako vi
bindkey -e # editor jako emacs
bindkey ' ' magic-space # mezerník rozbaluje odkazy na historii
alias ls="ls -F --color" # BAREVNÉ soubory
alias l="ls -hl" # bez ll nemá smysl žít
alias ll="l -a"
alias grep="grep -a --color=auto"
alias pull_website="wget --no-parent --recursive --page-requisites --convert-links --html-extension --no-clobber"
alias ..="cd .."
alias pp=python2
alias ppp=python3
alias htop="htop -d 3"
alias O=xdg-open
alias gits="git status"
alias gita="git add"
alias gitc="git commit"
alias gitp="git push"
alias gitl="git log"
alias http-dir="echo "Serving $CWD on 0.0.0.0:55555"; /usr/sbin/thttpd -D -d . -p 55555 -l -"
alias Yvid="youtube-dl --no-check-certificate"
alias Yall="youtube-dl -o \"%(autonumber)s-%(title)s.%(ext)s\""
alias units="units -v"
# Edit the current command line in $EDITOR
autoload -U edit-command-line
zle -N edit-command-line
bindkey '\C-x\C-e' edit-command-line
mkcd () {
mkdir -p "$1" && cd "$1"
}
mkv-fixtitles () {
for arg in "$@"
do
title="${arg%%.[mM][kK][vV]}"
mkvpropedit "$arg" --set "title=$title" --edit track:v1 --delete name > /dev/null
if [ $? -ne 0 ]; then
echo "$arg failed"
fi
done
}
psg () { ps axu | grep -v grep | grep -i $* } # hledání v běžících procesech
pskill () {
pids=($(psg $1|awk '{print $1}'))
for pid in $pids; do
echo "Killing $pid..."
kill $pid
done
}
psm () {
pid=(${=$(psg $1|grep -o --color=no -E "[0-9]+")})
echo "Found pid=${pid[1]}."
scanmem -p ${pid[1]}
}
zres () {
. /etc/zsh/zshrc
hash -r
}
# winetricks tools
wt-prefix() {
export WINEPREFIX="$HOME/.local/share/wineprefixes/$1"
export WINEARCH="win32"
}
wt-goto_c() {
cd $WINEPREFIX/drive_c
}
wt-list_prefixes() {
ls $* $HOME/.local/share/wineprefixes/
}
HISTFILE=~/.history # soubor pro ukládání do historie
SAVEHIST=5000 # ukládá se 5000 příkazů
HISTSIZE=5000 # :)
setopt HIST_IGNORE_SPACE
setopt HIST_IGNORE_ALL_DUPS
#setopt SHARE_HISTORY
#setopt EXTENDED_HISTORY
setopt INC_APPEND_HISTORY
setopt EXTENDED_GLOB
unsetopt NO_CLOBBER # ochrana při přesměrovávání výstupů
unsetopt CORRECTALL # opravy překlepů
setopt NO_BEEP # nepípat při chybách
unsetopt equals # kvůli emerge =něco
export ZLE_REMOVE_SUFFIX_CHARS=$' \t\n;&'
# File completion
setopt AUTOLIST # vypisuje možnosti pro doplnění
setopt NO_LIST_AMBIGUOUS # vypisuje je HNED, ne až při druhém <Tab>
setopt LIST_PACKED # zkrácený výpis
zmodload -i zsh/complist # obarví vypisované soubory
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion::complete:*' use-cache 1
zstyle ':completion:*' special-dirs true
autoload -U compinit # aktivuje "standardní" pravidla pro doplňování
compinit
autoload colors zsh/terminfo
source /usr/share/over-prompt/zsh-init
# keyboard stuff
bindkey "\e[1~" beginning-of-line
bindkey "\e[2~" quoted-insert
bindkey "\e[3~" delete-char
bindkey "\e[4~" end-of-line
bindkey "\e[5~" beginning-of-history
bindkey "\e[6~" end-of-history
bindkey "\e[7~" beginning-of-line
bindkey "\e[8~" end-of-line
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
bindkey "\eOH" beginning-of-line
bindkey "\eOF" end-of-line
bindkey "\eOd" backward-word
bindkey "\eOc" forward-word
# paludis default options
export CAVE_OPTIONS="--log-level warning"
export CAVE_RESOLVE_OPTIONS="--reinstall-scm weekly --show-descriptions new --continue-on-failure if-satisfied"

View file

@ -0,0 +1,54 @@
VisualHostKey=yes
Host S202
Hostname 192.168.201.202
User msekera
Host K92
Hostname 10.2.0.92
User tech
Host T202
Hostname 192.168.202.202
User root
Host covalent.cz
Hostname covalent.cz
User overwatch
Host kralux
Hostname kralu.overtech.cz
User root
Host kralu
Hostname 10.0.0.1
User root
Host S202x
Hostname covalent.cz
Port 50022
User msekera
Host T202x
Hostname covalent.cz
Port 44422
User root
Host K92x
Hostname covalent.cz
Port 55522
User tech
Host R89
Hostname 192.168.201.89
User root
Host tellus.kklan
Hostname 192.168.2.222
Port 50022
User eridanus
Host over.kk
Hostname 192.168.2.250
Port 22
User root