diff --git a/.bash_aliases b/.bash_aliases index 2842551..7b78da0 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -21,6 +21,7 @@ alias .....='cd ../../../..' alias cdf='cd /media/data/data/video/filmy/' alias cdb='cd /media/data/data/video/biblicke/' +alias bat='batcat --theme ansi' ## vim alias svi='sudo vim ' @@ -33,6 +34,9 @@ alias sar='sudo aptitude remove ' ## omgf alias gf="omgf --what-now" +## mosh +alias mosh_opi4='mosh -p 27840:27900 opi4' +alias mosh_vps='mosh -p 37200:37500 vpssk' ######################################################################### ## funkcie @@ -49,15 +53,18 @@ if [ -f $1 ] ; then case $1 in *.tar.bz2) tar xvjf $1 ;; *.tar.gz) tar xvzf $1 ;; + *.xz) unxz $1 ;; + *.tar.xz) tar xvf $1 ;; *.bz2) bunzip2 $1 ;; *.rar) unar $1 ;; *.gz) gunzip $1 ;; - *.tar) tarzxvf $1 ;; + *.tar) tar zxvf $1 ;; *.tbz2) tar xvjf $1 ;; *.tgz) tar xvzf $1 ;; *.zip) unzip $1 ;; *.Z) uncompress $1 ;; *.7z) 7zcx $1 ;; + *.iso) adresar=$( echo $1|awk -F "." '{print $1}' ) ; mkdir $adresar && 7z x $1 -o$adresar ;; *) echo "don't know;how to extract '$1'..." ;; esac else diff --git a/.bashrc b/.bashrc index d7da239..3493518 100644 --- a/.bashrc +++ b/.bashrc @@ -166,3 +166,19 @@ export VISUAL=$EDITOR [[ -f ~/.resh/shellrc ]] && source ~/.resh/shellrc # this line was added by RESH (Rich Enchanced Shell History) [[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh # this line was added by RESH (Rich Enchanced Shell History) + +# set PATH so it includes user's private bin if it exists +if [ -d "$HOME/bin" ] ; then +export PATH="$HOME/bin:$PATH" +fi + +# set PATH so it includes user's private bin if it exists +if [ -d "$HOME/.local/bin" ] ; then +export PATH="$HOME/.local/bin:$PATH" +fi + +# set PATH so it includes cargo bin if it exists +if [ -d "$HOME/.cargo/bin" ] ; then +export PATH="$HOME/.cargo/bin:$PATH" +fi + diff --git a/.gitconfig b/.gitconfig index 839b5df..3ffbe15 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,6 +1,7 @@ [user] name = Štefan Bystriansky email = bystriansky.stefan12@gmail.com + signingkey = AD7552BD2FED9F02AD83C1735584F1ECF6232C7B [core] editor = vim autocrlf = input @@ -27,3 +28,5 @@ advertisePushOptions = true [gc] writeCommitGraph = true +[commit] + gpgsign = true diff --git a/.profile b/.profile index 74b7b9a..bb632cf 100644 --- a/.profile +++ b/.profile @@ -15,14 +15,3 @@ if [ -n "$BASH_VERSION" ]; then . "$HOME/.bashrc" 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 - diff --git a/.tmux.conf b/.tmux.conf index d26fbf3..2c7d38d 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,4 +1,5 @@ -unbind C-b -set -g prefix C-a -bind C-a send-prefix +#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" diff --git a/.vimrc b/.vimrc index 3c85e68..fc9e15d 100644 --- a/.vimrc +++ b/.vimrc @@ -14,4 +14,5 @@ set background=dark "lepší čitelnost v černém okně terminálu set ignorecase "case insensitive vyhledávání set smartcase "vypne case insensitive při hledání slova s velkými písmeny set incsearch "při hledání hned zobrazuje prvně nálezené -set nojoinspaces "nevkládá dvě mezery za větu při spojování řádk +set nojoinspaces "nevkládá dvě mezery za větu při spojování řádky +set hls is