Compare commits
36 Commits
6ac8ce7a60
...
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 |
@@ -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
|
||||
5
screenrc
5
screenrc
@@ -1,5 +0,0 @@
|
||||
# disable copyright notice during startup
|
||||
startup_message off
|
||||
|
||||
# suppress activity messages
|
||||
bell_msg ""
|
||||
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\"]"
|
||||
15
vimrc
15
vimrc
@@ -4,12 +4,12 @@ set nocompatible
|
||||
" disable modeline for security
|
||||
set nomodeline
|
||||
|
||||
" let vim set the terminal title
|
||||
set title
|
||||
|
||||
" avoid creating a swapfile
|
||||
set noswapfile
|
||||
|
||||
" Adjust the default color groups for a dark or light background, respectively.
|
||||
set background=dark
|
||||
|
||||
" Highlight the screen line of the cursor
|
||||
set cursorline
|
||||
|
||||
@@ -28,6 +28,15 @@ let g:netrw_banner=0
|
||||
" Tree style listing in netrw
|
||||
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
|
||||
|
||||
|
||||
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
zshrc
39
zshrc
@@ -3,14 +3,25 @@ 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
|
||||
export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
|
||||
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
|
||||
|
||||
@@ -32,6 +43,10 @@ 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
|
||||
|
||||
@@ -53,26 +68,21 @@ 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 mv='mv -v'
|
||||
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'
|
||||
|
||||
# update all repositories within the current directory
|
||||
alias update_repositories='find . -name ".git" -type d | xargs -P4 -I{} git --git-dir={} --work-tree={} pull'
|
||||
alias glog='g log -p'
|
||||
alias gst='g status'
|
||||
|
||||
# Suppresses line numbers in less
|
||||
alias less='less --line-numbers'
|
||||
@@ -81,15 +91,18 @@ alias less='less --line-numbers'
|
||||
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
|
||||
|
||||
source ~/.zsh/term_title
|
||||
# include reading files from directory
|
||||
source "${HOME}"/.zsh/*
|
||||
|
||||
Reference in New Issue
Block a user