Compare commits

...

34 Commits

Author SHA1 Message Date
254fc3062c fix (zshrc): WORDCHARS are a feature from zsh and should not require an export 2026-01-02 13:48:07 +01:00
1b8218f193 fix (zshrc): iterm2 requires an explicit typeset for the precmd_define_prompt 2025-11-21 10:27:14 +01:00
3343658120 docs (zshrc): fix comment about PROMPT_SUBST 2025-11-20 17:35:02 +01:00
7fc93e8351 fix (zshrc): add prompt setup to array of precmd_functions 2025-11-20 17:22:57 +01:00
3734e7f232 feat (vimrc): disable re-use of directory listings buffers 2025-11-10 14:39:59 +01:00
8b948cd1dc feat (vimrc): disable recently-visited directory history list 2025-11-10 14:36:34 +01:00
74308124dd chore (vimrc): use one style to assign values to options 2025-11-10 14:33:13 +01:00
d1f3baacce style (zshrc): only display the latest name of the folder 2025-05-05 13:59:01 +02:00
42b4bfc7ab refactor (gitconfig): add inital gitconfig and redefine alias gst 2025-04-29 09:09:23 +02:00
124d7bc71b new (zprofile): add automatic mechanism to start or reattach a tmux when connecting onto a remote server 2024-11-09 09:52:14 +01:00
447a7e8ecd new (tmux.conf): add minimal tmux config 2024-11-09 09:47:48 +01:00
518798a7e9 fix (zshrc): avoid looping over files for sourcing them
this seems to not just have performence improvements but also avoids assignments of variables
2024-04-22 21:52:45 +02:00
a55bf30b34 feat (git-commit-template): bring the used commit template back 2024-03-28 09:45:40 +01:00
39344142d1 feat (zshrc): make glog an alias for 'git log -p' 2024-03-28 09:43:07 +01:00
24a522627e feat (vimrc): let command-line completion operates in an enhanced mode 2024-02-10 17:15:10 +01:00
20fb0f29ae del (vimrc): remove setting for foldmethod (for now?) 2024-02-10 17:00:40 +01:00
7367aefa94 feat (zshrc): include what has been written up to the cursor position while 'browsing' through history 2023-11-23 20:40:12 +01:00
43f7302dc6 del (zshrc): remove alias tmux-ssh - tmux has not been used that way 2023-11-23 15:57:47 +01:00
e85cab5fb6 del (zshrc): make cp and mv less verbose 2023-11-20 15:56:19 +01:00
f77d66a848 feat (vimrc): use foldmethod indent - lines with equal indent form a fold 2023-11-17 20:16:27 +01:00
9353d37444 fix (README.md) moar new lines 2023-11-17 19:58:07 +01:00
ccd098a2e4 feat (vimrc): let vim set the title of the terminal 2023-11-17 18:58:39 +01:00
11fb372518 del (helper/weechat.autoadjust): used on remote session - not really a local config 2023-11-17 18:47:16 +01:00
a47723cf70 del (screenrc): use tabs from the default terminal 2023-11-17 18:45:42 +01:00
cbbfc67661 fix (zshrc): use a definition of PS1 that allow to be recognized while scrolling through a wall of text 2023-08-31 21:44:16 +02:00
5bf2f19f2b new (helper/weechat.autoadjust): add commands to enhance readability while using auto adjust setting for appearance 2023-08-22 16:37:11 +02:00
940ca1075d fix (screenrc): prepare screenrc status line to be easier to read when automatic adjustment of apperance is enabled 2023-08-09 21:04:12 +02:00
ce6d070859 fix (vimrc): if one enables automatic adjust of the appearance this leads to decreased readability 2023-08-09 20:58:35 +02:00
257eae5c3e fix (screenrc): avoid jump of an empty character when switch focused window 2023-07-29 16:34:27 +02:00
b079d328e7 feat (screenrc): add a simple "status line" 2023-07-29 16:13:28 +02:00
cf9971fed4 feat (zshrc): create or reuse a tmux session while using ssh 2023-07-29 15:32:55 +02:00
048de00fe7 fix (screenrc): increase value of scrollback. the default value is way to small 2023-07-29 15:24:17 +02:00
f38e6934a9 fix (zshrc): consider this dangerous - handle repositories with more care 2023-07-29 15:13:51 +02:00
9c000263ac feat (zshrc): instead of sourcing files individually just do so with files from a certain directory 2023-07-21 10:02:12 +02:00
8 changed files with 74 additions and 22 deletions

View File

@@ -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
View 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
View File

@@ -0,0 +1,7 @@
[user]
email = ...
name = eeemsi
[commit]
template = ~/.git/git-commit-template
[status]
short = true

View File

@@ -1,5 +0,0 @@
# disable copyright notice during startup
startup_message off
# suppress activity messages
bell_msg ""

6
tmux.conf Normal file
View 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\"]"

17
vimrc
View File

@@ -4,12 +4,12 @@ set nocompatible
" disable modeline for security " disable modeline for security
set nomodeline set nomodeline
" let vim set the terminal title
set title
" avoid creating a swapfile " avoid creating a swapfile
set noswapfile set noswapfile
" Adjust the default color groups for a dark or light background, respectively.
set background=dark
" Highlight the screen line of the cursor " Highlight the screen line of the cursor
set cursorline set cursorline
@@ -26,7 +26,16 @@ set list listchars=tab:>-,trail:-
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 " disable ringing the bell for all events
set belloff=all set belloff=all

5
zprofile Normal file
View 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

30
zshrc
View File

@@ -7,8 +7,14 @@ fi
# sequences (default is 0.4 sec.) # sequences (default is 0.4 sec.)
KEYTIMEOUT=1 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 # List of non-alphanumeric characters considered part of a word
export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>' WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
# Do not create a history file for less # Do not create a history file for less
export LESSHISTFILE=/dev/null export LESSHISTFILE=/dev/null
@@ -62,26 +68,21 @@ 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 l='ls -F -h'
alias la='ls -F -h -A' alias la='ls -F -h -A'
alias mv='mv -v'
alias view='vim -R' alias view='vim -R'
# Comfortable git aliases # 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'
# update all repositories within the current directory
alias update_repositories='find . -name ".git" -type d | xargs -P4 -I{} git --git-dir={} --work-tree={} pull'
# Suppresses line numbers in less # Suppresses line numbers in less
alias less='less --line-numbers' alias less='less --line-numbers'
@@ -90,15 +91,18 @@ alias less='less --line-numbers'
alias cdt='builtin cd "$(mktemp -d)"' 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
source ~/.zsh/term_title # include reading files from directory
source "${HOME}"/.zsh/*