Compare commits
4 Commits
41fb0c639a
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
3aa8bd8ff1
|
|||
|
e65c556cc5
|
|||
|
360afecb75
|
|||
|
5fb9b3618b
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -8,7 +8,6 @@
|
||||
|
||||
# allow some stuff to be pushed
|
||||
!alacritty
|
||||
!nvim
|
||||
!.pyenv
|
||||
|
||||
# zsh
|
||||
|
||||
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +0,0 @@
|
||||
[submodule "nvim"]
|
||||
path = nvim
|
||||
url = git@git.janezic.dev:janezicmatej/nvim.git
|
||||
@@ -15,6 +15,7 @@ font-size = 15
|
||||
font-thicken = true
|
||||
bold-is-bright = true
|
||||
|
||||
# disable ligatures
|
||||
font-feature=-calt
|
||||
font-feature=-liga
|
||||
font-feature=-dlig
|
||||
@@ -40,3 +41,6 @@ shell-integration = zsh
|
||||
|
||||
# gtk
|
||||
gtk-titlebar = false
|
||||
|
||||
# paste protection
|
||||
clipboard-paste-protection = false
|
||||
|
||||
1
nvim
1
nvim
Submodule nvim deleted from d97244ca10
@@ -1,7 +1,7 @@
|
||||
add_newline = false
|
||||
|
||||
format = """\
|
||||
$username$hostname\
|
||||
$hostname\
|
||||
[$directory](cyan)\
|
||||
$git_branch\
|
||||
$git_commit\
|
||||
@@ -52,10 +52,7 @@ python_binary = 'python'
|
||||
pyenv_version_name = false
|
||||
detect_files = [ '.python-version' ]
|
||||
|
||||
[username]
|
||||
format = '[$user@]($style)'
|
||||
|
||||
[hostname]
|
||||
ssh_only = false
|
||||
style = 'bold yellow'
|
||||
format = '[$ssh_symbol$hostname]($style) '
|
||||
ssh_symbol = ''
|
||||
format = '[$hostname]($style) on '
|
||||
|
||||
@@ -5,12 +5,14 @@ source "$XDG_CONFIG_HOME/zsh/scripts.zsh"
|
||||
if [[ $# -eq 1 ]]; then
|
||||
selected=$1
|
||||
else
|
||||
read -p "ssh url: " selected
|
||||
read -p "url: " selected
|
||||
fi
|
||||
|
||||
if [[ -z $selected ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
ggman clone "$selected"
|
||||
ggcompile
|
||||
ggman clone $selected
|
||||
|
||||
echo ""
|
||||
read -p "press enter to continue..."
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
if [[ $# -eq 1 ]]; then
|
||||
selected=$1
|
||||
else
|
||||
selected=$(ggman exec pwd 2>&1 >/dev/null \
|
||||
selected=$(ggman ls \
|
||||
| fzf --cycle \
|
||||
--bind 'tab:toggle-up,btab:toggle-down' \
|
||||
--header "Navigate with ARROW KEYS or TAB/S-TAB. Select with ENTER." \
|
||||
@@ -18,12 +18,8 @@ if [[ -z $selected ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
path=$selected
|
||||
while [[ "$path" != "" && ! -e "$path/.sessionizer" ]]; do
|
||||
path=${path%/*}
|
||||
done
|
||||
selected_name="$(echo $selected | shasum -a 256 | head -c 4)_$(basename $selected | tr . _ | head -c 10)"
|
||||
|
||||
selected_name="$(cat $path/.sessionizer)_$(basename $selected | tr . _ | head -c 10)_$(echo $selected | shasum -a 256 | head -c 4)"
|
||||
tmux_running=$(pgrep tmux)
|
||||
|
||||
if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then
|
||||
|
||||
@@ -44,7 +44,7 @@ function main() {
|
||||
if [[ $# -eq 1 ]]; then
|
||||
selected=$1
|
||||
else
|
||||
selected="$(rg -N --no-heading 'Host .*' ~/.ssh \
|
||||
selected="$(rg -N --no-heading '^Host .*' ~/.ssh \
|
||||
| sed 's/Host \(.*\)/\1/' \
|
||||
| SHELL=$(which bash) fzf --cycle \
|
||||
--bind 'tab:toggle-up,btab:toggle-down' \
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
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-option -g focus-events on
|
||||
|
||||
unbind C-b
|
||||
set-option -g prefix C-s
|
||||
|
||||
bind r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf"
|
||||
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-window-option -g mode-keys vi
|
||||
|
||||
Reference in New Issue
Block a user