Compare commits
2 Commits
360afecb75
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
3aa8bd8ff1
|
|||
|
e65c556cc5
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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
3
.gitmodules
vendored
@@ -1,3 +0,0 @@
|
|||||||
[submodule "nvim"]
|
|
||||||
path = nvim
|
|
||||||
url = git@git.janezic.dev:janezicmatej/nvim.git
|
|
||||||
1
nvim
1
nvim
Submodule nvim deleted from d97244ca10
@@ -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..."
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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' \
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user