112 lines
3.9 KiB
Bash
112 lines
3.9 KiB
Bash
export PATH=/Users/norets/.cargo/bin:$PATH
|
|
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
|
|
export PATH=/Users/norets/.local/bin:$PATH
|
|
export PATH=/usr/local/opt/llvm/bin:$PATH
|
|
export PATH=/usr/local/sbin:$PATH
|
|
export PATH=/usr/bin:$PATH
|
|
export PATH=/usr/sbin:$PATH
|
|
export PATH=/usr/local/opt/make/libexec/gnubin:$PATH
|
|
export PATH=/Library/TeX/texbin:$PATH
|
|
export PATH="/usr/local/bin:$PATH"
|
|
export PATH="/Users/norets/opt/neovim/bin:$PATH"
|
|
# export ANDROID_SDK_ROOT=/Users/norets/opt
|
|
# export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
|
|
# export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/platform-tools
|
|
# export PATH=$PATH:$ANDROID_SDK_ROOT/build-tools/30.0.3
|
|
# export PATH=/usr/local/opt/gnu-sed/libexec/gnubin:$PATH
|
|
|
|
export TOKEN_RO=t.zw2IDNZvkfFaAK3jUZUUSay-Yc_Gi2Um-7lhmBCPVEAZtQ8lKJqLGb75vFKJwDCUOkN5eClLOipB5DDWqEq0RA
|
|
|
|
|
|
# source /usr/local/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh
|
|
|
|
|
|
# Folders with projects
|
|
# export WORKON_HOME=$HOME/.virtualenvs
|
|
# export PROJECT_HOME=$HOME/projects
|
|
|
|
|
|
export LANG="en_US.UTF-8"
|
|
export LC_CTYPE="en_US.UTF-8"
|
|
|
|
# Functions for zsh.
|
|
source ~/.config/zsh/my_zsh_func.zsh
|
|
|
|
# History
|
|
# хранить историю в указанном файле
|
|
export HISTFILE=~/.config/zsh/.zsh_history
|
|
# максимальное число команд, хранимых в сеансе
|
|
export HISTSIZE=10000
|
|
export SAVEHIST=$HISTSIZE
|
|
# включить историю команд
|
|
setopt APPEND_HISTORY
|
|
# убрать повторяющиеся команды, пустые строки и пр.
|
|
setopt HIST_IGNORE_ALL_DUPS
|
|
setopt HIST_IGNORE_SPACE
|
|
setopt HIST_REDUCE_BLANKS
|
|
setopt SHARE_HISTORY
|
|
|
|
alias server1c='ssh norets@135.181.253.33'
|
|
alias vdsina='ssh norets@88.210.3.57'
|
|
alias twc='ssh norets@147.45.135.158'
|
|
alias turcia='ssh root@65.108.243.87'
|
|
# alias l='eza --tree --level=1 --icons=always --no-user --no-time --no-permissions --group-directories-first'
|
|
alias ls='ls --color=always'
|
|
alias ll='ls -lah'
|
|
alias emacs='~/programm_sources/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs --init-directory ~/.config/emacs.terminal --eval "(x-focus-frame nil)"'
|
|
alias enw='~/programm_sources/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs -nw --init-directory ~/.config/emacs.terminal/'
|
|
alias ctags="`brew --prefix`/bin/ctags"
|
|
#
|
|
# alias enw='emacs -nw'
|
|
# alias ec='/usr/local/bin/emacsclient -nw -c "$@"'
|
|
# alias ega='exa -lah --git'
|
|
# alias exat='exa -hT --git'
|
|
# alias nls='exa -la --color=always --git --group-directories-first $*'
|
|
# alias em='emacs -nw'
|
|
# alias doomem='emacs --with-profile doom'
|
|
|
|
# Привязываем клавишу для вызова функции (например, Ctrl+w)
|
|
# bindkey '^w' switch_or_create_tmux_session_widget
|
|
|
|
bindkey -s ^w "~/.config/zsh/tmux-sessionizer\n"
|
|
|
|
|
|
parse_git_branch() {
|
|
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p'
|
|
}
|
|
setopt PROMPT_SUBST
|
|
# PROMPT='[%F{243}%n@%m%f %F{gray}%B%1~%b%f] %F{cyan}$(parse_git_branch)%f %F{yellow}>>%f '
|
|
PROMPT='[%n@%F{243}%m%f %F{gray}%1~%f]$ '
|
|
# COLOR_DEF='%f'
|
|
# COLOR_USR='%F{243}'
|
|
# COLOR_DIR='%F{197}'
|
|
# COLOR_GIT='%F{39}'
|
|
# # About the prefixed `$`: https://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_03.html#:~:text=Words%20in%20the%20form%20%22%24',by%20the%20ANSI%2DC%20standard.
|
|
# NEWLINE=$'\n'
|
|
# # Set zsh option for prompt substitution
|
|
# setopt PROMPT_SUBST
|
|
# export PROMPT='${COLOR_USR}%n@%M ${COLOR_DIR}%d ${COLOR_GIT}$(parse_git_branch)${COLOR_DEF}${NEWLINE}%% '
|
|
|
|
|
|
# Auto sug
|
|
# source ~/.config/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
# zsh
|
|
source <(fzf --zsh)
|
|
# fzf
|
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
|
|
|
autoload -U compinit promptinit
|
|
|
|
promptinit
|
|
# prompt pure
|
|
|
|
compinit
|
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' # ignore case
|
|
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} = # colorz !
|
|
fpath=(/usr/local/share/zsh-completions $fpath)
|
|
|
|
# source /usr/local/share/zsh-syntax-highlighting.zsh
|
|
# export PATH="/usr/local/opt/m4/bin:$PATH"
|
|
|