Compare commits

..

19 Commits
test ... master

  1. 26
      .bashrc
  2. 2
      .gitconfig
  3. 2
      .gitconfigsign
  4. 1
      .inputrc
  5. 38
      .profile
  6. 3
      .tmux.conf
  7. 13
      CHANGELOG.md
  8. 1
      VERSION
  9. 28
      cle/al
  10. 6
      cle/cf-HP
  11. 92
      cle/tw

@ -36,7 +36,7 @@ HISTSIZE=10000
HISTFILESIZE=50000
# moje vložené ignoruje príkazy
HISTIGNORE=yy*:jw:.:..*:poweroff:reboot:exit
HISTIGNORE=.:\ :..*:poweroff:reboot:exit
#HISTIGNORE=&: :yy*:jw:.:..*:poweroff:reboot:exit
# check the window size after each command and, if necessary,
@ -144,7 +144,31 @@ if ! shopt -oq posix; then
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
if [ -d "$HOME/.binenv" ] ; then
PATH="${HOME}/.binenv:$PATH"
source <(binenv completion bash)
fi
# set PATH so it includes cargo bin if it exists
if [ -d "$HOME/.cargo/bin" ] ; then
export PATH="$HOME/.cargo/bin:$PATH"
fi
# symbolický link do zložky pre rýchly pohyb v zložkách
if [ -d "$HOME/.goto" ]; then
export CDPATH=".:$HOME/.goto:/"
alias goto="cd -P"
fi
##TMUX pre automatické spustenie -> touch ~/.tmux.auto
if [ -f ~/.tmux.auto ]; then

@ -27,3 +27,5 @@
advertisePushOptions = true
[gc]
writeCommitGraph = true
[init]
defaultBranch = master

@ -32,3 +32,5 @@
advertisePushOptions = true
[gc]
writeCommitGraph = true
[init]
defaultBranch = master

@ -4,3 +4,4 @@ set expand-tilde on # expanduje tildu po <tab>
"\C-t": forward-search-history # história reverzne ^-t
"\e[1;5D": backward-word # Skákanie po slovách ^-doľava
"\e[1;5C": forward-word # Skákanie po slovách ^-doprava
set completion-ignore-case on

@ -16,22 +16,22 @@ if [ -n "$BASH_VERSION" ]; then
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
if [ -d "$HOME/.binenv" ] ; then
PATH="${HOME}/.binenv:$PATH"
source <(binenv completion bash)
fi
# set PATH so it includes cargo bin if it exists
if [ -d "$HOME/.cargo/bin" ] ; then
export PATH="$HOME/.cargo/bin:$PATH"
fi
## set PATH so it includes user's private bin if it exists
#if [ -d "$HOME/bin" ] ; then
# PATH="$HOME/bin:$PATH"
#fi
#
## set PATH so it includes user's private bin if it exists
#if [ -d "$HOME/.local/bin" ] ; then
# PATH="$HOME/.local/bin:$PATH"
#fi
#
#if [ -d "$HOME/.binenv" ] ; then
# PATH="${HOME}/.binenv:$PATH"
# source <(binenv completion bash)
#fi
#
## set PATH so it includes cargo bin if it exists
#if [ -d "$HOME/.cargo/bin" ] ; then
# export PATH="$HOME/.cargo/bin:$PATH"
#fi

@ -1,5 +1,8 @@
#unbind C-b
#set -g prefix C-a
#bind C-a send-prefix
#
#set -g status-right "%H:%M:%S %A %d-%m-%Y"
set -g default-terminal "screen-256color"
setw -g aggressive-resize on
set -g history-limit 99999

@ -0,0 +1,13 @@
# Change Log
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.0.0] - 2025-04-20
### Added
- New changelog file.
[0.0.0]: ssh://git@gitea.steb.eu:39521/stevo/armbian_config/releases/tag/v0.0.0

@ -0,0 +1 @@
0.0.0

@ -0,0 +1,28 @@
alias bat='batcat --theme ansi'
alias c='clear'
alias cdb='cd /media/data/data/video/biblicke/'
alias cdf='cd /media/data/data/video/filmy/'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias gf='omgf --what-now'
alias grep='grep --color=auto'
alias la='ls -A '
alias less='less -FSRXc'
alias ll='ls -AhlF '
alias lll='ls -AhlF --color=always | less -r'
alias ls='ls --color=auto'
alias mosh_opi4='mosh -p 27840:27900 opi4'
alias mosh_vps='mosh -p 37200:37500 vpssk'
alias sar='sudo aptitude remove '
alias sas='sudo aptitude safe-upgrade '
alias sau='sudo aptitude update '
alias svi='sudo vim '
alias wget='wget -c'
alias yya='yt-dlp -i --extract-audio --audio-format mp3 --yes-playlist'
alias yyap='yt-dlp -i --extract-audio --audio-format mp3 --yes-playlist --output "%(playlist)s/%(playlist_index)s-%(title)s-%(id)s.%(ext)s"'
alias yyf='yt-dlp -i --extract-audio --audio-format flac --yes-playlist'
alias yyfp='yt-dlp -i --extract-audio --audio-format flac --yes-playlist --output "%(playlist)s/%(playlist_index)s-%(title)s-%(id)s.%(ext)s"'
alias yyr='yt-dlp -i -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best --yes-playlist'
alias yyrp='yt-dlp -i -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best --yes-playlist --output "%(playlist)s/%(playlist_index)s-%(title)s-%(id)s.%(ext)s"'
alias yyy='yt-dlp -i -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best -r 500K --yes-playlist'
alias yyyp='yt-dlp -i -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best -r 500K --yes-playlist --output "%(playlist)s/%(playlist_index)s-%(title)s-%(id)s.%(ext)s"'

@ -0,0 +1,6 @@
# 2021-10-11 (Zodiac)
CLE_CLR=DYyYL
CLE_PB0='^Cg^E ^Cy\t '
CLE_PB1='^CR\u^Cw@^CR\h ^CG\w ^CBd:$(find . -mindepth 1 -maxdepth 1 -type d | wc -l) f:$(find . -mindepth 1 -maxdepth 1 -type f | wc -l) l:$(find . -mindepth 1 -maxdepth 1 -type l | wc -l) '
CLE_PB2='$(_git_prompt)'
CLE_PB3='^CG\n ^$ '

@ -0,0 +1,92 @@
#!/bin/bash
_git_prompt() {
# local _FETCH=$(git fetch 2> /dev/null)
local _FETCH=$(git remote update 2> /dev/null)
local _BRANCH=$(git rev-parse --abbrev-ref HEAD 2> /dev/null)
local _STATUS=$(git status -s 2> /dev/null)
local _UNTRACKED=$(echo "$_STATUS" | grep '^??' | wc -l)
local _STAGED1=$(echo "$_STATUS" | grep '^M ' | wc -l)
local _STAGED2=$(echo "$_STATUS" | grep '^D ' | wc -l)
local _STAGED3=$(echo "$_STATUS" | grep '^R ' | wc -l)
local _STAGED4=$(echo "$_STATUS" | grep '^C ' | wc -l)
local _STAGED5=$(echo "$_STATUS" | grep '^A ' | wc -l)
local _STAGED=$(($_STAGED1 + $_STAGED2 + $_STAGED3 + $_STAGED4 + $_STAGED5))
local _DRC1=$(echo "$_STATUS" | grep '^ D' | wc -l)
local _DRC2=$(echo "$_STATUS" | grep '^ R' | wc -l)
local _DRC3=$(echo "$_STATUS" | grep '^ C' | wc -l)
local _DRC=$(($_DRC1 + $_DRC2 + $_DRC3))
local _MODIFIED=$(echo "$_STATUS" | grep '^ M' | wc -l)
local _CONFLICT=$(echo "$_STATUS" | grep '^UU' | wc -l)
local _IGNORED=$(echo "$_STATUS" | grep '^!!' | wc -l)
local _NEPOZNAM=$(echo "$_STATUS" | grep '^ A|^T |^ T|^TT|^MM|^MT|^MD|^TM|^TD|^AM|^AT|^AD|^RM|^RT|^RD|^CM|^CT|^CD|^MM|^TM|^AM|^RM|^CM|^MT|^T|^AT|^RT|^CT|^MD|^TD|^AD|^RD|^CD|^DD|^AU|^UD|^UA|^DU|^AA' | wc -l)
local _STATS=''
local _STATUS2=$(git status -s 2>&1 )
local _GIT_EXIST=$(echo "$_STATUS2" | grep 'not a git repository' | wc -l)
########
local _STATUS3="$(git status 2> /dev/null)"
local _DIST_STRING=""
local _IS_AHEAD=$(echo -n "$_STATUS3" | grep "ahead")
local _IS_BEHIND=$(echo -n "$_STATUS3" | grep "behind")
local _DIVERGED=$(echo -n "$_STATUS3" | grep "diverged")
########
if [ "$_GIT_EXIST" = "0" ]; then
if [ ! -z "$_IS_AHEAD" ]; then
local _DIST_VAL=$(echo "$_IS_AHEAD" | sed 's/[^0-9]*//g')
_DIST_STRING="\e[1;36m\U2B60$_BRANCH \e[1;33m↑$_DIST_VAL\U21C4\e[0m" # push
elif [ ! -z "$_IS_BEHIND" ]; then
local _DIST_VAL=$(echo "$_IS_BEHIND" | sed 's/[^0-9]*//g')
_DIST_STRING="\e[1;36m\U2B60$_BRANCH \e[1;31m↓$_DIST_VAL\U21C4\e[0m" # pull
elif [ ! -z "$_DIVERGED" ]; then
_DIST_STRING="\e[1;36m\U2B60$_BRANCH \e[4;41m✖\U21C4\e[0m" # remote chaozz
else
_DIST_STRING="\e[1;36m\U2B60$_BRANCH \e[1;32m\U221A\U21C4\e[0m" # remote ok
fi
if [ ! -z "$_DIST_STRING" ]; then
echo -en "\e[0m$_DIST_STRING " # print remote
fi
#######
if [ "$_MODIFIED" != "" ] && [ "$_MODIFIED" != "0" ]; then
_STATS="$_STATS\e[1;33m✚$_MODIFIED\e[0m " # edit
fi
if [ "$_STAGED" != "" ] && [ "$_STAGED" != "0" ]; then
_STATS="$_STATS\e[1;31m●$_STAGED\e[0m " # staged
fi
if [ "$_CONFLICT" != "" ] && [ "$_CONFLICT" != "0" ]; then
_STATS="$_STATS\e[4;41m!$_CONFLICT\e[0m " # conflict
fi
if [ "$_DRC" != "" ] && [ "$_DRC" != "0" ]; then
_STATS="$_STATS\e[1;31m✖⤽$_DRC\e[0m " # rm mv cp
fi
if [ "$_UNTRACKED" != "" ] && [ "$_UNTRACKED" != "0" ]; then
_STATS="$_STATS\e[1;34m…$_UNTRACKED\e[0m " # untraged
fi
if [ "$_IGNORED" != "" ] && [ "$_IGNORED" != "0" ]; then
_STATS="$_STATS\e[1;35m-$_IGNORED\e[0m " # ignored
fi
if [ "$_NEPOZNAM" != "" ] && [ "$_NEPOZNAM" != "0" ]; then
_STATS="$_STATS\e[5;31m\U26A0 $_NEPOZNAM >git status\e[0m " # nepoznam
fi
if [ ! -z "$_STATS" ]; then
echo -en "\e[0m$_STATS \e[0m" # print local status
else
echo -en "\e[1;32m\U221A\U1F5A5\e[0m" # ok local status
fi
fi
}
# Black 30 40
# Red 31 41
# Green 32 42
# Yellow 33 43
# Blue 34 44
# Purple 35 45
# Cyan 36 46
# Light Gray 37 47
# ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[red]%}%{●%G%}"
# ZSH_THEME_GIT_PROMPT_CONFLICTS="%{$fg[red]%}%{✖%G%}"
# ZSH_THEME_GIT_PROMPT_CHANGED="%{$fg[blue]%}%{✚%G%}"
# ZSH_THEME_GIT_PROMPT_BEHIND="%{↓%G%}"
# ZSH_THEME_GIT_PROMPT_AHEAD="%{↑%G%}"
# ZSH_THEME_GIT_PROMPT_UNTRACKED="%{…%G%}"
# ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}%{✔%G%}"
# \U221A 🖥 \U21D3 \U21D1 \UE0A0
Loading…
Cancel
Save