Compare commits
No commits in common. "d9ff4b040288d177a1c08f554e5b39a8f87c1101" and "9cd140a8ec7d752a6bf9ef9846dbd1fb4418d99a" have entirely different histories.
d9ff4b0402
...
9cd140a8ec
|
|
@ -22,9 +22,6 @@ bind - split-window -v
|
|||
unbind b
|
||||
bind b setw synchronize-panes
|
||||
|
||||
# reset working dir for session
|
||||
unbind h
|
||||
bind h attach-session -t . -c "#{pane_current_path}"
|
||||
|
||||
# status bar
|
||||
set -g status-right '%H:%m %d-%b-%y '
|
||||
|
|
|
|||
16
.zshrc
16
.zshrc
|
|
@ -6,14 +6,15 @@ export PATH=$HOME/bin:/usr/local/bin:/usr/lib64/openjdk-17/bin:$PATH
|
|||
|
||||
# Set name of the theme to load. Optionally, if you set this to "random"
|
||||
# it'll load a random theme each time that oh-my-zsh is loaded.
|
||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes ZSH_THEME="blokkzh"
|
||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
||||
ZSH_THEME="blokkzh"
|
||||
|
||||
# Set list of themes to load
|
||||
# Setting this variable when ZSH_THEME="blokkzh"
|
||||
# cause zsh load theme from this variable instead of
|
||||
# looking in ~/.oh-my-zsh/themes/
|
||||
# An empty array have no effect
|
||||
ZSH_THEME="blokkzh"
|
||||
# ZSH_THEME="blokkzh"
|
||||
|
||||
# Uncomment the following line to use case-sensitive completion.
|
||||
# CASE_SENSITIVE="true"
|
||||
|
|
@ -106,9 +107,14 @@ export PATH=$HOME/.cargo/bin:$PATH
|
|||
function work() {
|
||||
work_dirs=( "$HOME/clones" "$HOME/sandbox" )
|
||||
|
||||
goto=$(find $work_dirs -maxdepth 1 -mindepth 1 -type d | fzf --query=$1 --preview "tree -C -L 2 {}")n
|
||||
[ -z $goto ] && return
|
||||
projects=()
|
||||
|
||||
for dr in "${work_dirs[@]}"; do
|
||||
p=$( ls -d -1 ${dr}/* )
|
||||
projects=( "${projects[@]}" "${p[@]}" )
|
||||
done
|
||||
|
||||
goto=$(echo "$projects" | fzf --query=$1 --preview "tree -C -L 2 {}")
|
||||
if [ -z $TMUX ]
|
||||
then
|
||||
tmux new -A -s "$(basename -- $goto)" -c "$goto"
|
||||
|
|
@ -116,6 +122,4 @@ function work() {
|
|||
tmux new -d -s "$(basename -- $goto)" -c "$goto"
|
||||
tmux switch-client -t "$(basename -- $goto)"
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue