Compare commits

...

7 Commits

Author SHA1 Message Date
42b683b62b cleanup 2025-03-27 09:10:04 -04:00
30e7cf3d02 nvim flutter 2025-03-26 14:36:31 -04:00
b0296177f6 added flutter nvim config and folder to alias 2025-03-26 14:36:31 -04:00
d1c391a7ec added flutter nvim config and folder to alias 2025-03-26 14:36:31 -04:00
ca37a74180 changed nvim setup 2025-03-26 14:36:31 -04:00
19f6c5d5d2 omz load times 2025-03-26 14:36:31 -04:00
550866878e zsh shortcut and fzf 2025-03-24 14:54:55 -04:00
5 changed files with 14 additions and 6 deletions

View File

@@ -5,7 +5,8 @@ function sb() { cd $HOME/second-brain/; git pull; nvim; git add .; git commit; g
## Open work folder with fuzzy finder ## Open work folder with fuzzy finder
function work() { function work() {
work_dirs=( "$HOME/clones" "$HOME/sandbox" ) work_dirs=( "$HOME/clones" "$HOME/sandbox" "$HOME/TA/" )
work_dirs=( $(find $work_dirs -maxdepth 0 -type d 2> /dev/null) )
goto="" goto=""
if [ ! -z $1 ]; then if [ ! -z $1 ]; then
goto=$(find $work_dirs -maxdepth 1 -mindepth 1 -type d | fzf -f $1) goto=$(find $work_dirs -maxdepth 1 -mindepth 1 -type d | fzf -f $1)
@@ -20,7 +21,7 @@ function work() {
tmux new -A -s "$(basename -- $goto)" -c "$goto" tmux new -A -s "$(basename -- $goto)" -c "$goto"
else else
tmux new -d -s "$(basename -- $goto)" -c "$goto" tmux new -d -s "$(basename -- $goto)" -c "$goto"
tmux switch-client -t "$(basename -- $goto)" tmux switch-client -t "$(basename -- $goto | tr . _)"
fi fi
} }
@@ -50,3 +51,4 @@ alias dotvenv='source .venv/bin/activate'
alias todo='rusty-tasks' alias todo='rusty-tasks'
alias ccat='bat' alias ccat='bat'
alias we='watchexec' alias we='watchexec'
alias netcheck='ping 8.8.8.8'

1
.config/nvim Submodule

Submodule .config/nvim added at a54d69c808

View File

@@ -13,7 +13,7 @@
d = diff d = diff
dc = diff -cached dc = diff -cached
lol = log --decorate --pretty=oneline --abbrev-commit lol = log --decorate --pretty=oneline --abbrev-commit
lg = log --pretty=format:'%C(auto) %h,%C(green) \"%s\"%Creset, %aN,%C(blue) %cD' lg = "log --pretty=format:'%C(auto) %h,%C(green) \"%s\"%Creset, %aN,%C(blue) %cD'"
[core] [core]
editor = nvim editor = nvim

4
.gitmodules vendored Normal file
View File

@@ -0,0 +1,4 @@
[submodule ".config/nvim"]
path = .config/nvim
url = git@github.com:andrei-stoica/kickstart.nvim.git
branch = custom

7
.zshrc
View File

@@ -1,6 +1,4 @@
zmodload zsh/zprof zmodload zsh/zprof
export NVM_LAZY_LOAD=true
export NVM_COMPLETION=true
# If you come from bash you might have to change your $PATH. # If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:/usr/lib65/openjdk-17/bin:$PATH export PATH=$HOME/bin:/usr/local/bin:/usr/lib65/openjdk-17/bin:$PATH
@@ -62,7 +60,6 @@ ZSH_THEME="blokkzh"
# Add wisely, as too many plugins slow down shell startup. # Add wisely, as too many plugins slow down shell startup.
plugins=( plugins=(
git git
zsh-fzf-history-search
) )
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
@@ -105,6 +102,7 @@ autoload -z edit-command-line
zle -N edit-command-line zle -N edit-command-line
bindkey "^v" edit-command-line bindkey "^v" edit-command-line
bindkey -s "^w" "work^M"
# adding cargo to path # adding cargo to path
export PATH=$HOME/.cargo/bin:$PATH export PATH=$HOME/.cargo/bin:$PATH
@@ -121,3 +119,6 @@ nvm() {
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
nvm "$@" nvm "$@"
} }
# new fzf command integration
source <(fzf --zsh)