Compare commits

...

6 Commits

10 changed files with 32 additions and 28 deletions

1
.gitignore vendored
View File

@@ -8,7 +8,6 @@
# allow some stuff to be pushed # allow some stuff to be pushed
!alacritty !alacritty
!nvim
!.pyenv !.pyenv
# zsh # zsh

3
.gitmodules vendored
View File

@@ -1,3 +0,0 @@
[submodule "nvim"]
path = nvim
url = git@git.janezic.dev:janezicmatej/nvim.git

View File

@@ -1,5 +1,6 @@
# theme # theme
theme = light:gruvbox-material-soft-light,dark:gruvbox-material-soft-dark # theme = light:gruvbox-material-soft-light,dark:gruvbox-material-soft-dark
theme = gruvbox-material-soft-dark
# cursor # cursor
cursor-style = block cursor-style = block
@@ -14,7 +15,13 @@ font-size = 15
font-thicken = true font-thicken = true
bold-is-bright = true bold-is-bright = true
# disable ligatures
font-feature=-calt
font-feature=-liga
font-feature=-dlig
# window # window
window-theme = dark
window-height = 36 window-height = 36
window-width = 150 window-width = 150
@@ -31,3 +38,9 @@ keybind = global:cmd+enter=new_window
# shell integrations for zsh # shell integrations for zsh
# https://ghostty.org/docs/features/shell-integration # https://ghostty.org/docs/features/shell-integration
shell-integration = zsh shell-integration = zsh
# gtk
gtk-titlebar = false
# paste protection
clipboard-paste-protection = false

1
nvim

Submodule nvim deleted from d97244ca10

View File

@@ -1,7 +1,7 @@
add_newline = false add_newline = false
format = """\ format = """\
$username$hostname\ $hostname\
[$directory](cyan)\ [$directory](cyan)\
$git_branch\ $git_branch\
$git_commit\ $git_commit\
@@ -52,10 +52,7 @@ python_binary = 'python'
pyenv_version_name = false pyenv_version_name = false
detect_files = [ '.python-version' ] detect_files = [ '.python-version' ]
[username]
format = '[$user@]($style)'
[hostname] [hostname]
ssh_only = false
style = 'bold yellow' style = 'bold yellow'
format = '[$ssh_symbol$hostname]($style) ' format = '[$hostname]($style) on '
ssh_symbol = ''

View File

@@ -5,12 +5,14 @@ source "$XDG_CONFIG_HOME/zsh/scripts.zsh"
if [[ $# -eq 1 ]]; then if [[ $# -eq 1 ]]; then
selected=$1 selected=$1
else else
read -p "ssh url: " selected read -p "url: " selected
fi fi
if [[ -z $selected ]]; then if [[ -z $selected ]]; then
exit 0 exit 0
fi fi
ggman clone "$selected" ggman clone $selected
ggcompile
echo ""
read -p "press enter to continue..."

View File

@@ -3,7 +3,7 @@
if [[ $# -eq 1 ]]; then if [[ $# -eq 1 ]]; then
selected=$1 selected=$1
else else
selected=$(ggman exec pwd 2>&1 >/dev/null \ selected=$(ggman ls \
| fzf --cycle \ | fzf --cycle \
--bind 'tab:toggle-up,btab:toggle-down' \ --bind 'tab:toggle-up,btab:toggle-down' \
--header "Navigate with ARROW KEYS or TAB/S-TAB. Select with ENTER." \ --header "Navigate with ARROW KEYS or TAB/S-TAB. Select with ENTER." \
@@ -18,12 +18,8 @@ if [[ -z $selected ]]; then
exit 0 exit 0
fi fi
path=$selected selected_name="$(echo $selected | shasum -a 256 | head -c 4)_$(basename $selected | tr . _ | head -c 10)"
while [[ "$path" != "" && ! -e "$path/.sessionizer" ]]; do
path=${path%/*}
done
selected_name="$(cat $path/.sessionizer)_$(basename $selected | tr . _ | head -c 10)_$(echo $selected | shasum -a 256 | head -c 4)"
tmux_running=$(pgrep tmux) tmux_running=$(pgrep tmux)
if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then

View File

@@ -44,7 +44,7 @@ function main() {
if [[ $# -eq 1 ]]; then if [[ $# -eq 1 ]]; then
selected=$1 selected=$1
else else
selected="$(rg -N --no-heading 'Host .*' ~/.ssh \ selected="$(rg -N --no-heading '^Host .*' ~/.ssh \
| sed 's/Host \(.*\)/\1/' \ | sed 's/Host \(.*\)/\1/' \
| SHELL=$(which bash) fzf --cycle \ | SHELL=$(which bash) fzf --cycle \
--bind 'tab:toggle-up,btab:toggle-down' \ --bind 'tab:toggle-up,btab:toggle-down' \

View File

@@ -1,17 +1,19 @@
set -g default-terminal "xterm-256color" set -g default-terminal "xterm-256color"
set -ag terminal-overrides ",xterm-256color:RGB" set -ga terminal-overrides ",xterm-256color:RGB"
set -ga terminal-features ",xterm-256color:clipboard"
set -g allow-passthrough on
set -g set-clipboard on
set -s escape-time 0 set -s escape-time 0
set-option -g focus-events on
unbind C-b unbind C-b
set-option -g prefix C-s set-option -g prefix C-s
bind r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf" bind r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf"
set -g base-index 1 set -g base-index 1
set -g status-style 'bg=#45403d fg=#d4be98' set -g status-style 'bg=default fg=default'
set -g status-left-length 20 set -g status-left-length 20
set-window-option -g mode-keys vi set-window-option -g mode-keys vi

View File

@@ -16,8 +16,7 @@ unsetopt autocd
# pyenv # pyenv
eval "$(pyenv init - zsh)" eval "$(pyenv init - zsh)"
# https://github.com/pyenv/pyenv-virtualenv/issues/259 eval "$(pyenv virtualenv-init - zsh)"
eval "$(pyenv virtualenv-init - zsh | sed s/precmd/chpwd/g)"
# ggman # ggman
eval "$(ggman shellrc)" eval "$(ggman shellrc)"