Skip to content

Commit 4f38292

Browse files
committed
further tweaks
1 parent bdd8dd1 commit 4f38292

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ playbook.retry
33
*.swp
44
*.pyc
55
.zshrc.local
6+
roles/dotfiles/files/Mackup/.config/karabiner/automatic_backups

roles/dotfiles/files/Mackup/.config/kitty/kitty.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ macos_option_as_alt both
1616

1717
enable_audio_bell no
1818

19-
confirm_os_window_close 1
19+
confirm_os_window_close 0
2020

2121
# https://github.com/kovidgoyal/kitty/issues/285
2222
map ctrl+shift+- send_text all \x1f
2323

24-
# env ZSH_TMUX_AUTOSTART=true
24+
env ZSH_TMUX_AUTOSTART=true
2525

2626
# include pywal colour scheme
2727
include ${HOME}/.cache/wal/colors-kitty.conf

roles/dotfiles/files/Mackup/.oh-my-zsh/custom/custom.zsh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ alias weather="curl wttr.in/Melbourne"
6565
# Setup frequent dirs in the CDPATH so we can cd to them from anywhere
6666
# https://thoughtbot.com/blog/cding-to-frequently-used-directories-in-zsh
6767
setopt auto_cd
68-
cdpath=($HOME/Sites $HOME/src)
68+
cdpath=($HOME/Projects)
6969

7070
# Setup a zsh suffix alias to allow fast editing using just the filename
7171
# https://opensource.com/article/18/9/tips-productivity-zsh
@@ -160,5 +160,20 @@ if (( $+commands[atuin] )); then
160160
eval "$(atuin init zsh)"
161161
fi
162162

163+
163164
alias duai="dua interactive"
165+
# Function to interactively select and cd into a ghq repository
166+
function cghq() {
167+
local repo_path
168+
repo_path=$(
169+
for repo in $(ghq list -p); do
170+
echo -e "$(git -C "$repo" log -1 --format="%ad" --date=format:"%Y-%m-%d")\t$repo"
171+
done | sort | fzf --height 20% --delimiter='\t' --tac --preview "git -C {2} log --oneline --graph --date=relative --all" | cut -f2
172+
)
173+
174+
if [[ -n "$repo_path" ]]; then
175+
cd "$repo_path" || return
176+
fi
177+
}
164178

179+
alias lg="lazygit"

0 commit comments

Comments
 (0)