2024-02-21 12:55:18 +03:00
|
|
|
# # # # # #
|
|
|
|
# EDITORS #
|
|
|
|
# # # # # #
|
|
|
|
|
|
|
|
# for ranger
|
|
|
|
export VISUAL=nvim;
|
|
|
|
# for default editor
|
|
|
|
export EDITOR=nvim;
|
|
|
|
|
|
|
|
# # # #
|
|
|
|
# ZSH #
|
|
|
|
# # # #
|
|
|
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
|
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
|
|
fi
|
|
|
|
|
|
|
|
export ZSH="$HOME/.oh-my-zsh"
|
|
|
|
#ZSH_THEME="af-magic"
|
|
|
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
|
|
|
plugins=(git zsh-autosuggestions)
|
|
|
|
# disable bi-weekly auto-update checks
|
|
|
|
DISABLE_AUTO_UPDATE="true"
|
|
|
|
|
|
|
|
# Path to your oh-my-zsh installation
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
|
|
|
|
|
|
|
|
# # # # # #
|
|
|
|
# ALIASES #
|
|
|
|
# # # # # #
|
|
|
|
|
|
|
|
# delete package
|
|
|
|
alias delete_pkg="yay -R"
|
|
|
|
|
|
|
|
# question before delete
|
|
|
|
alias rm="\rm -i"
|
|
|
|
|
|
|
|
# cpp projects
|
|
|
|
alias rrr="/mnt/raid/projects/cpp/rrr/rrr.v2/build/bin/rrr.v2"
|
|
|
|
alias diskinfo="/mnt/raid/projects/cpp/disk-info/build/bin/disk-info"
|
|
|
|
|
|
|
|
# ./run for develp
|
|
|
|
alias run="./run"
|
|
|
|
alias deploy="./deploy"
|
|
|
|
alias update="./update"
|
|
|
|
|
|
|
|
# goto
|
|
|
|
alias srv=". srv"
|
|
|
|
|
|
|
|
# show image in kitty (use: image ./patch_to_img)
|
|
|
|
alias image="kitty +kitten icat"
|
|
|
|
|
|
|
|
# cat aliase
|
|
|
|
alias cat="bat --style=plain --color=always"
|
|
|
|
|
|
|
|
# goto to dir
|
|
|
|
alias ..="cd .."
|
|
|
|
alias ...="cd ../../"
|
|
|
|
alias ....="cd ../../../"
|
|
|
|
|
|
|
|
# previous command
|
|
|
|
alias pr="fc -s"
|
|
|
|
|
|
|
|
# bpytop
|
|
|
|
alias bp="bpytop"
|
|
|
|
|
|
|
|
# z.lua
|
|
|
|
alias goto="z -I"
|
|
|
|
|
|
|
|
alias nv="nvim"
|
|
|
|
|
|
|
|
alias ls="lst"
|
|
|
|
|
2024-03-10 13:30:01 +03:00
|
|
|
# run sonic-annotator
|
|
|
|
alias sonic-anotator="/home/$USER/vamp/sonic-annotator"
|
|
|
|
|
2024-02-21 12:55:18 +03:00
|
|
|
# # # # # # #
|
|
|
|
# SETTINGS #
|
|
|
|
# # # # # #
|
|
|
|
|
|
|
|
# убираем цветовой окрас папок в терминале
|
|
|
|
export LS_COLORS="$LS_COLORS:ow=1;34:tw=1;34:"
|
|
|
|
|
|
|
|
# text to speech
|
|
|
|
# export GOOGLE_APPLICATION_CREDENTIALS=/mnt/raid/application/Golang/TextToSpeach/TextToSpeech-862311f87938.json
|
|
|
|
|
|
|
|
# chatlanin
|
|
|
|
export CHATLANIN_PATH=$HOME/bin/scripts/system
|
|
|
|
export PROJECT_CPP_PATH=/mnt/raid/projects/cpp
|
|
|
|
export PATH=$PATH:$CHATLANIN_PATH:$PROJECT_CPP_PATH:/usr/include:/usr:$HOME/.local/bin:/mnt/raid/projects/cpp/rrr/rrr.v2/build/bin
|
|
|
|
|
|
|
|
# нужно добавить переменную окружения $VAMPY_PATH для работы анотатора
|
|
|
|
# export PATH=$PATH:$CHATLANIN_PATH:$PROJECT_CPP_PATH:/usr/include:$VAMPY_PATH
|
|
|
|
|
|
|
|
# устанавливаем кэширование пароля от git. после этого можно делать обновление месона
|
|
|
|
# и скачивание репозиториев без ввода пароля по https
|
|
|
|
git config --global credential.helper 'cache --timeout=108000'
|
|
|
|
|
|
|
|
# set history size in the file
|
|
|
|
HISTFILESIZE=12000
|
|
|
|
|
|
|
|
# set no write file data if exist
|
|
|
|
set -o noclobber
|
|
|
|
|
|
|
|
# автоподсказки для перемещения goto
|
|
|
|
# this is https://github.com/skywind3000/z.lua
|
|
|
|
eval "$(lua $HOME/bin/z.lua/z.lua --init zsh)"
|
|
|
|
|
|
|
|
neofetch
|
|
|
|
|
|
|
|
# для применения настроек fzf по умолчанию
|
|
|
|
export FZF_DEFAULT_OPTS='--height=40% --layout=reverse --info=inline --border --margin=1 --padding=1 -e'
|
|
|
|
|
|
|
|
# для переопределения стилей qt приложений на gtk
|
|
|
|
export QT_STYLE_OVERRIDE=kvantum
|
|
|
|
export NVM_DIR="$HOME/.nvm"
|
|
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
|
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
|
|
|
|
|
|
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
|
|
|
|
|
|
# change sudo prompt #
|
|
|
|
export sudo_PROMPT="[] Enter sudo Password, Mr.${USER}: "
|