Compare commits
52 Commits
777271fd41
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 254fc3062c | |||
| 1b8218f193 | |||
| 3343658120 | |||
| 7fc93e8351 | |||
| 3734e7f232 | |||
| 8b948cd1dc | |||
| 74308124dd | |||
| d1f3baacce | |||
| 42b4bfc7ab | |||
| 124d7bc71b | |||
| 447a7e8ecd | |||
| 518798a7e9 | |||
| a55bf30b34 | |||
| 39344142d1 | |||
| 24a522627e | |||
| 20fb0f29ae | |||
| 7367aefa94 | |||
| 43f7302dc6 | |||
| e85cab5fb6 | |||
| f77d66a848 | |||
| 9353d37444 | |||
| ccd098a2e4 | |||
| 11fb372518 | |||
| a47723cf70 | |||
| cbbfc67661 | |||
| 5bf2f19f2b | |||
| 940ca1075d | |||
| ce6d070859 | |||
| 257eae5c3e | |||
| b079d328e7 | |||
| cf9971fed4 | |||
| 048de00fe7 | |||
| f38e6934a9 | |||
| 9c000263ac | |||
| 319f0bb0a9 | |||
| dcc3582255 | |||
| 6ac8ce7a60 | |||
| 50d50ff069 | |||
| 9713982a79 | |||
| f092a2a747 | |||
| 78a89156ef | |||
| 555b2a2524 | |||
| fe962313b5 | |||
| 59c12ff606 | |||
| a91ffe96ef | |||
| 8dd42a8c0d | |||
| b023b1a049 | |||
| ea909b00d7 | |||
| 9f05dc1a87 | |||
| 0d5af8da0f | |||
| 124a1f012c | |||
| fe24172e4c |
@@ -1,3 +1,5 @@
|
||||
HAI
|
||||
|
||||
BTW if you find something that does some mess - please let me know
|
||||
|
||||
KTHXBYE
|
||||
|
||||
24
git-commit-template
Normal file
24
git-commit-template
Normal file
@@ -0,0 +1,24 @@
|
||||
# Type (<scope>): <subject>
|
||||
|
||||
# <body>
|
||||
|
||||
# <footer> (Keyword #issue)
|
||||
|
||||
# Type should be one of the following:
|
||||
# * new (new component, file, ...)
|
||||
# * del (delete component, file, ...)
|
||||
# * feat (new feature)
|
||||
# * fix (bug fix)
|
||||
# * docs (changes to documentation)
|
||||
# * style (formatting, missing semi colons, etc; no code change)
|
||||
# * refactor (refactoring production code)
|
||||
# * test (adding missing tests, refactoring tests; no production code change)
|
||||
# * chore (updating grunt tasks etc; no production code change)
|
||||
# Scope can be anything from file to component or empty (much changes)
|
||||
# Subject should use imperative tone and say what you did.
|
||||
# The body should go into detail about changes made.
|
||||
# The footer should contain any JIRA (or other tool) issue references or actions.
|
||||
# Keyword should be one of the following:
|
||||
# * refs (refers to the given issue - does not fix or close it)
|
||||
# * fixes (the given issue is fixed)
|
||||
# * closes (the given issue is cloesd - might be new component, feature, ...)
|
||||
7
gitconfig
Normal file
7
gitconfig
Normal file
@@ -0,0 +1,7 @@
|
||||
[user]
|
||||
email = ...
|
||||
name = eeemsi
|
||||
[commit]
|
||||
template = ~/.git/git-commit-template
|
||||
[status]
|
||||
short = true
|
||||
6
tmux.conf
Normal file
6
tmux.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
# Update the status line every interval seconds
|
||||
# A setting of zero disables redrawing at interval
|
||||
set -g status-interval 0
|
||||
|
||||
# Display string to the right of the status line
|
||||
set -g status-right "[\"#h\"]"
|
||||
27
vimrc
27
vimrc
@@ -4,20 +4,41 @@ set nocompatible
|
||||
" disable modeline for security
|
||||
set nomodeline
|
||||
|
||||
" Adjust the default color groups for a dark or light background, respectively.
|
||||
set background=dark
|
||||
" let vim set the terminal title
|
||||
set title
|
||||
|
||||
" avoid creating a swapfile
|
||||
set noswapfile
|
||||
|
||||
" Highlight the screen line of the cursor
|
||||
set cursorline
|
||||
|
||||
" Ignore case in search patterns and hihglight search results
|
||||
set ignorecase hlsearch
|
||||
|
||||
" enable syntax highlighting
|
||||
syntax on
|
||||
|
||||
" show tabs and trailing spaces
|
||||
set list listchars=tab:>-,trail:-
|
||||
|
||||
" Suppress the banner in netrw
|
||||
let g:netrw_banner=0
|
||||
|
||||
" Tree style listing in netrw
|
||||
let g:netrw_liststyle = 3
|
||||
let g:netrw_liststyle=3
|
||||
|
||||
" controls maximum quantity of entries in recently-visited directory history list
|
||||
let g:netrw_dirhistmax=0
|
||||
|
||||
" never re-use directory listings buffers
|
||||
let g:netrw_fastbrowse=0
|
||||
|
||||
" let command-line completion operates in an enhanced mode
|
||||
set wildmenu
|
||||
|
||||
" disable ringing the bell for all events
|
||||
set belloff=all
|
||||
|
||||
" Automatically remove trailing whitespace
|
||||
autocmd! BufWrite * mark ' | silent! %s/\s\+$// | norm '
|
||||
|
||||
5
zprofile
Normal file
5
zprofile
Normal file
@@ -0,0 +1,5 @@
|
||||
# Start or reattach a tmux session when a ssh connection is established
|
||||
if [[ -n "${SSH_CONNECTION}" ]] && [[ "${TERM}" != "tmux-256color" ]]; then
|
||||
tmux attach-session -d || tmux new-session
|
||||
exit
|
||||
fi
|
||||
39
zsh/term_title
Normal file
39
zsh/term_title
Normal file
@@ -0,0 +1,39 @@
|
||||
set_termtitle() {
|
||||
# escape '%' chars in "${1}", make nonprintables visible
|
||||
local a="${(V)1//\%/\%\%}"
|
||||
|
||||
# Truncate command, and join lines.
|
||||
a="${a//[$'\r'$'\n']/}"
|
||||
|
||||
[[ "${a}" = "zsh" ]] && { a="${(%)${:-%~}}" }
|
||||
|
||||
case "${TERM}" in
|
||||
screen)
|
||||
# plain xterm title
|
||||
print -rn -- $'\e'"]2;${(%)${:-%m}}: ${a}"$'\a'
|
||||
|
||||
# screen title (in ^A")
|
||||
print -rn -- $'\e'"k${a}"$'\e'$'\\'
|
||||
|
||||
# screen location
|
||||
print -rn -- $'\e'"_${(%)${:-%m}}: ${a}"$'\e'$'\\'
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
my_prompt_precmd() {
|
||||
set_termtitle "zsh"
|
||||
}
|
||||
|
||||
my_prompt_preexec() {
|
||||
set_termtitle "${1}"
|
||||
}
|
||||
|
||||
typeset -ga precmd_functions
|
||||
precmd_functions+=my_prompt_precmd
|
||||
|
||||
typeset -ga preexec_functions
|
||||
preexec_functions+=my_prompt_preexec
|
||||
|
||||
66
zshrc
66
zshrc
@@ -3,12 +3,34 @@ if [[ ! -o interactive ]]; then
|
||||
return
|
||||
fi
|
||||
|
||||
# Timeout, in hundredths of seconds, when reading bound multi-character
|
||||
# sequences (default is 0.4 sec.)
|
||||
KEYTIMEOUT=1
|
||||
|
||||
# Search backward in the history for a line beginning with the current line up to the cursor
|
||||
bindkey '^P' history-beginning-search-backward
|
||||
|
||||
# Search forward in the history for a line beginning with the current line up to the cursor
|
||||
bindkey '^N' history-beginning-search-forward
|
||||
|
||||
# List of non-alphanumeric characters considered part of a word
|
||||
WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
|
||||
|
||||
# Do not create a history file for less
|
||||
export LESSHISTFILE=/dev/null
|
||||
|
||||
# Disable features like shell or pipe commands and more in less
|
||||
export LESSSECURE=1
|
||||
|
||||
# completion system
|
||||
autoload -U compinit; compinit
|
||||
|
||||
# retrieve information from version control systems
|
||||
autoload -Uz vcs_info
|
||||
|
||||
# Case-insensitive, partial-word and then substring completion
|
||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
||||
|
||||
# Offers menu when > selected elements appear
|
||||
zstyle ':completion:*' menu select
|
||||
|
||||
@@ -18,6 +40,13 @@ zstyle ':vcs_info:*' enable git
|
||||
# Specify how it should be formatted
|
||||
zstyle ':vcs_info:*' formats '%b'
|
||||
|
||||
# Disable beeping on errors
|
||||
unsetopt BEEP
|
||||
|
||||
# Define size for HISTSIZE and SAVEHIST also define path for HISTFILE
|
||||
HISTSIZE=8192
|
||||
SAVEHIST=8192
|
||||
|
||||
# Make cd push the old directory onto the directory stack
|
||||
setopt AUTO_PUSHD
|
||||
|
||||
@@ -39,42 +68,41 @@ setopt HIST_IGNORE_SPACE
|
||||
# When writing out the history file, older commands that duplicate newer ones are omitted
|
||||
setopt HIST_SAVE_NO_DUPS
|
||||
|
||||
# Enable vcs_info
|
||||
# parameter expansion, command substitution and arithmetic expansion are performed in prompts
|
||||
setopt PROMPT_SUBST
|
||||
|
||||
# Comfortable aliases
|
||||
alias ..='cd ..'
|
||||
alias cp='cp -v'
|
||||
alias l='ls -F -h'
|
||||
alias la='ls -F -h -A'
|
||||
alias view='vim -R'
|
||||
|
||||
# Comfortable git aliases
|
||||
alias g='git'
|
||||
alias gc='g commit'
|
||||
alias gd='g diff'
|
||||
alias glog='g log --graph --oneline'
|
||||
alias gst='g status --short --branch'
|
||||
alias l='ls -F -h'
|
||||
alias la='ls -F -h -a'
|
||||
alias mv='mv -v'
|
||||
alias view='vim -R'
|
||||
alias glog='g log -p'
|
||||
alias gst='g status'
|
||||
|
||||
# Suppresses line numbers in less
|
||||
alias less='less --line-numbers'
|
||||
|
||||
# Create temporary directory and cd to it
|
||||
alias cdt='builtin cd "$(mktemp -d)"'
|
||||
|
||||
# Defines the prompt
|
||||
precmd() {
|
||||
precmd_define_prompt() {
|
||||
vcs_info
|
||||
|
||||
# check if vcs_info_msg_0_ is empty to avoid an anoying space in the prompt
|
||||
if [[ -z ${vcs_info_msg_0_} ]]; then
|
||||
PS1='%B%F{green}%(3~|…/%2~|%~)%f %%%b '
|
||||
PS1='%B%K{white}%F{black}%(3~|…/%1~|%~)%k%f %%%b '
|
||||
else
|
||||
PS1='%B%F{green}%(3~|…/%2~|%~)%f %F{cyan}${vcs_info_msg_0_}%f %%%b '
|
||||
PS1='%B%K{white}%F{black}%(3~|…/%1~|%~)%k%f %F{green}${vcs_info_msg_0_}%f %%%b '
|
||||
fi
|
||||
}
|
||||
typeset -ga precmd_functions
|
||||
precmd_functions+=precmd_define_prompt
|
||||
|
||||
# List of non-alphanumeric characters considered part of a word
|
||||
export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
|
||||
|
||||
# Do not create a history file for less
|
||||
export LESSHISTFILE=/dev/null
|
||||
|
||||
# Disable features like shell or pipe commands and more in less
|
||||
export LESSSECURE=1
|
||||
# include reading files from directory
|
||||
source "${HOME}"/.zsh/*
|
||||
|
||||
Reference in New Issue
Block a user