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
|
HAI
|
||||||
|
|
||||||
BTW if you find something that does some mess - please let me know
|
BTW if you find something that does some mess - please let me know
|
||||||
|
|
||||||
KTHXBYE
|
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\"]"
|
||||||
25
vimrc
25
vimrc
@@ -4,21 +4,42 @@ set nocompatible
|
|||||||
" disable modeline for security
|
" disable modeline for security
|
||||||
set nomodeline
|
set nomodeline
|
||||||
|
|
||||||
" Adjust the default color groups for a dark or light background, respectively.
|
" let vim set the terminal title
|
||||||
set background=dark
|
set title
|
||||||
|
|
||||||
|
" avoid creating a swapfile
|
||||||
|
set noswapfile
|
||||||
|
|
||||||
" Highlight the screen line of the cursor
|
" Highlight the screen line of the cursor
|
||||||
set cursorline
|
set cursorline
|
||||||
|
|
||||||
|
" Ignore case in search patterns and hihglight search results
|
||||||
|
set ignorecase hlsearch
|
||||||
|
|
||||||
" enable syntax highlighting
|
" enable syntax highlighting
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
|
" show tabs and trailing spaces
|
||||||
|
set list listchars=tab:>-,trail:-
|
||||||
|
|
||||||
" Suppress the banner in netrw
|
" Suppress the banner in netrw
|
||||||
let g:netrw_banner=0
|
let g:netrw_banner=0
|
||||||
|
|
||||||
" Tree style listing in netrw
|
" 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
|
" Automatically remove trailing whitespace
|
||||||
autocmd! BufWrite * mark ' | silent! %s/\s\+$// | norm '
|
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
|
return
|
||||||
fi
|
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
|
# completion system
|
||||||
autoload -U compinit; compinit
|
autoload -U compinit; compinit
|
||||||
|
|
||||||
# retrieve information from version control systems
|
# retrieve information from version control systems
|
||||||
autoload -Uz vcs_info
|
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
|
# Offers menu when > selected elements appear
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
|
|
||||||
@@ -18,6 +40,13 @@ zstyle ':vcs_info:*' enable git
|
|||||||
# Specify how it should be formatted
|
# Specify how it should be formatted
|
||||||
zstyle ':vcs_info:*' formats '%b'
|
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
|
# Make cd push the old directory onto the directory stack
|
||||||
setopt AUTO_PUSHD
|
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
|
# When writing out the history file, older commands that duplicate newer ones are omitted
|
||||||
setopt HIST_SAVE_NO_DUPS
|
setopt HIST_SAVE_NO_DUPS
|
||||||
|
|
||||||
# Enable vcs_info
|
# parameter expansion, command substitution and arithmetic expansion are performed in prompts
|
||||||
setopt PROMPT_SUBST
|
setopt PROMPT_SUBST
|
||||||
|
|
||||||
# Comfortable aliases
|
# Comfortable aliases
|
||||||
alias ..='cd ..'
|
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 g='git'
|
||||||
alias gc='g commit'
|
alias gc='g commit'
|
||||||
alias gd='g diff'
|
alias gd='g diff'
|
||||||
alias glog='g log --graph --oneline'
|
alias glog='g log -p'
|
||||||
alias gst='g status --short --branch'
|
alias gst='g status'
|
||||||
alias l='ls -F -h'
|
|
||||||
alias la='ls -F -h -a'
|
|
||||||
alias mv='mv -v'
|
|
||||||
alias view='vim -R'
|
|
||||||
|
|
||||||
# Suppresses line numbers in less
|
# Suppresses line numbers in less
|
||||||
alias less='less --line-numbers'
|
alias less='less --line-numbers'
|
||||||
|
|
||||||
|
# Create temporary directory and cd to it
|
||||||
|
alias cdt='builtin cd "$(mktemp -d)"'
|
||||||
|
|
||||||
# Defines the prompt
|
# Defines the prompt
|
||||||
precmd() {
|
precmd_define_prompt() {
|
||||||
vcs_info
|
vcs_info
|
||||||
|
|
||||||
# check if vcs_info_msg_0_ is empty to avoid an anoying space in the prompt
|
# check if vcs_info_msg_0_ is empty to avoid an anoying space in the prompt
|
||||||
if [[ -z ${vcs_info_msg_0_} ]]; then
|
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
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
typeset -ga precmd_functions
|
||||||
|
precmd_functions+=precmd_define_prompt
|
||||||
|
|
||||||
# List of non-alphanumeric characters considered part of a word
|
# include reading files from directory
|
||||||
export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
|
source "${HOME}"/.zsh/*
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user