Compare commits
2 Commits
main
...
6616efec54
| Author | SHA1 | Date | |
|---|---|---|---|
| 6616efec54 | |||
| 369966726d |
@@ -19,8 +19,3 @@ lines = 115
|
||||
[window.position]
|
||||
x = 1550
|
||||
y = 0
|
||||
|
||||
[keyboard]
|
||||
bindings = [
|
||||
{ key = "Return", mods = "Shift", chars = "\n" }
|
||||
]
|
||||
|
||||
@@ -1,8 +1 @@
|
||||
font-family = "FiraCode Nerd Font Mono"
|
||||
|
||||
background-opacity = 0.8
|
||||
|
||||
command = "/usr/bin/zsh -c 'tmux attach || tmux'"
|
||||
initial-command = "/usr/bin/zsh -c 'tmux attach || tmux'"
|
||||
|
||||
keybind = shift+enter=text:\n
|
||||
|
||||
2
init.sh
2
init.sh
@@ -9,7 +9,7 @@ echo "PKGUPD: ${PKGUPD}"
|
||||
echo "PKGINST: ${PKGINST}"
|
||||
|
||||
# Install zsh, neovim, ripgrep, fd
|
||||
[[ $PKGINST != '' ]] && $PKGUPD && $PKGINST curl tmux zsh ripgrep fd-find fzf tree
|
||||
[[ $PKGINST != '' ]] && $PKGUPD && $PKGINST curl tmux zsh ripgrep fd-find fzf
|
||||
|
||||
# Install neovim
|
||||
pushd /tmp || true
|
||||
|
||||
@@ -41,8 +41,6 @@ alias cdjb='cd $HOME/src/github.com/jbohanon'
|
||||
alias cdgh='cd $HOME/src/github.com'
|
||||
alias cdo='cd $HOME/Documents/obsidian/work'
|
||||
alias nvo='cdo && nvim .'
|
||||
alias cddd='cd $HOME/src/github.com/AustinRobinson/DrivingDoc'
|
||||
alias nvdd='cddd && nvim .'
|
||||
|
||||
if [[ $(uname) == Linux ]]; then
|
||||
alias pbcopy='xsel --clipboard --input'
|
||||
@@ -76,4 +74,4 @@ alias sz='source $HOME/.zshrc'
|
||||
|
||||
eval "$(starship init zsh)"
|
||||
|
||||
# [[ -f "$HOME/.local/share/../bin/env" ]] && . "$HOME/.local/share/../bin/env"
|
||||
. "$HOME/.local/share/../bin/env"
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
cdf_preview() {
|
||||
if [ -d $1 ]; then
|
||||
tree -L 1 $1
|
||||
else
|
||||
cat $1
|
||||
fi
|
||||
}
|
||||
# cdf - cd with fuzzy finder
|
||||
# Usage: cdf [path]
|
||||
cdf() {
|
||||
local fd_options fzf_options target
|
||||
|
||||
fd_options=(
|
||||
--hidden
|
||||
)
|
||||
|
||||
fzf_options=(
|
||||
# --preview='echo {}'
|
||||
--preview='([[ -d {} ]] && tree -L 1 {}) || ([[ -L {} ]] && ls -al {}) || cat {}'
|
||||
--bind=ctrl-space:toggle-preview
|
||||
--exit-0
|
||||
)
|
||||
|
||||
target="$(fdfind . "${1:-.}" "${fd_options[@]}" | fzf "${fzf_options[@]}")"
|
||||
|
||||
([[ -f "$target" ]] || [[ -L "$target" ]]) && target="${target%/*}"
|
||||
|
||||
cd "$target" || return 1
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
if [[ -f "$HOME/.work-machine" ]]; then
|
||||
|
||||
SOLO_DIR="$HOME/src/github.com/solo-io"
|
||||
SOLO_GITHUB="https://github.com/solo-io"
|
||||
|
||||
@@ -113,21 +111,3 @@ alias nvagwe='cdagwe && nvim_readme'
|
||||
alias cdkgw='cd $KGW_DIR/kgateway'
|
||||
alias nvkgw='cdkgw && nvim_readme'
|
||||
|
||||
alias claude-vertex="CLAUDE_CONFIG_DIR=$HOME/.claude-vertex claude"
|
||||
alias claude-license="CLAUDE_CONFIG_DIR=$HOME/.claude-license claude"
|
||||
|
||||
export CLAUDE_CONFIG_DIR="$HOME/.claude-license"
|
||||
|
||||
function default-claude() {
|
||||
if [[ -z "$1" ]] || ([[ "$1" != "vertex" ]] && [[ "$1" != "license" ]]); then
|
||||
echo "invalid arg; must be 'vertex' or 'license'"
|
||||
return
|
||||
fi
|
||||
|
||||
if [[ "$1" == "vertex" ]]; then
|
||||
export CLAUDE_CONFIG_DIR="$HOME/.claude-vertex"
|
||||
elif [[ "$1" == "license" ]]; then
|
||||
export CLAUDE_CONFIG_DIR="$HOME/.claude-license"
|
||||
fi
|
||||
}
|
||||
fi
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/bash -e
|
||||
branch=$(git status|head -1|cut -f3 -d\ )
|
||||
git checkout $(git_main_branch)
|
||||
git checkout main
|
||||
git pull
|
||||
git checkout "$branch"
|
||||
git merge $(git_main_branch)
|
||||
git merge main
|
||||
|
||||
Reference in New Issue
Block a user