This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function virtualenv_prompt_info() { | |
local venvName="" | |
if [ -n "${VIRTUAL_ENV_PROMPT}" ]; then | |
venvName="${VIRTUAL_ENV_PROMPT}" | |
elif [ -n "${VIRTUAL_ENV}" ]; then | |
venvName="${VIRTUAL_ENV:t:gs/%/%%}" | |
fi | |
if [ -n "${venvName}" ]; then | |
echo -n "${ZSH_THEME_VIRTUALENV_PREFIX=[}${venvName}${ZSH_THEME_VIRTUALENV_SUFFIX=]}" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)%{$fg_bold[cyan]%}%c%{$reset_color%}" | |
PROMPT+='$(git_prompt_info)$(virtualenv_prompt_info)%{$reset_color%} | |
$ ' | |
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg_bold[blue]%}git:(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}%1{✗%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" | |
ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX=" %{$fg[green]%} " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup fzf | |
# --------- | |
export FZF_ALT_C_OPTS="--walker dir --walker-root $HOME/projects/ --walker-skip .git,node_modules,zig-out,.zig-cache,build,dist,.venv,__pycache__,.mypy_cache,target,.idea" | |
if [[ ! "$PATH" == *$HOME/.fzf/bin* ]]; then | |
PATH="${PATH:+${PATH}:}$HOME/.fzf/bin" | |
fi | |
eval "$(fzf --zsh)" | |
fzf-open-nvim(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g prefix C-a | |
unbind C-b | |
unbind C-z | |
bind C-a send-prefix | |
bind C-a last-window | |
bind C-z switch-client -l | |
bind -T copy-mode-vi v send-keys -X begin-selection | |
bind -T copy-mode-vi r send-keys -X rectangle-toggle | |
bind v copy-mode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
MIT License | |
Copyright (c) 2022 Dmytro Selishchev | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |