Skip to content

Commit

Permalink
shell: add ccd utility
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborpilz committed Sep 3, 2023
1 parent 0b188e4 commit d5999f8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 29 deletions.
18 changes: 0 additions & 18 deletions home/config/neovim/lua/orgmode.lua

This file was deleted.

11 changes: 1 addition & 10 deletions home/config/neovim/plugins.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
call plug#begin('~/.config/nvim/plugged')

" Copilot
" Plug 'github/copilot.vim'
Plug 'github/copilot.vim'

" Dashboard
Plug 'glepnir/dashboard-nvim'
Expand Down Expand Up @@ -54,19 +54,13 @@ Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
" planning/organization
Plug 'vimwiki/vimwiki'

" Timetracking
Plug 'wakatime/vim-wakatime'

" Languages
"" Terraform
Plug 'hashivim/vim-terraform'

"" Nix
Plug 'LnL7/vim-nix'

"" Org
Plug 'nvim-orgmode/orgmode'

" LSP
Plug 'neovim/nvim-lspconfig'
Plug 'williamboman/nvim-lsp-installer'
Expand Down Expand Up @@ -160,9 +154,6 @@ lua require('lsp-signature')
" Iron repl config
lua require('iron-config')

" Orgmode setup
lua require('orgmode')

" Dashboard settings
let g:dashboard_custom_header = [
\ ' ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗',
Expand Down
6 changes: 5 additions & 1 deletion home/config/zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,16 @@ gch() {
}

npr() {
command=$(jq -r '.scripts | keys | .[]' package.json | fzf --preview "jq -r '.scripts[\"{}\"]' package.json")
command=$(jq -r '.scripts | keys | .[]' package.json | fzf-tmux --preview "jq -r '.scripts[\"{}\"]' package.json")
if [[ ! -z command ]]; then
print -z "npm run $command"
fi
}

ccd() {
cd $(find ~/Code/* -type d -maxdepth 0 | fzf-tmux --preview 'glow {}/README.md --style=dark')
}

source <(kubectl completion zsh)
alias k=kubectl
# complete -F __start_kubectl k
Expand Down
3 changes: 3 additions & 0 deletions home/modules/shell/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ in
coreutils
thefuck
wakatime

#Markdown View
glow
];

home.sessionVariables.ZDOTDIR = "${envVars.XDG_CONFIG_HOME}/zsh";
Expand Down

0 comments on commit d5999f8

Please sign in to comment.