Skip to content

Commit

Permalink
no idea
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyjosephprice committed Dec 17, 2024
1 parent d2d2e98 commit ff666d2
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 31 deletions.
13 changes: 9 additions & 4 deletions .aliases
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
alias dot='git --git-dir=$HOME/git/dotfiles --work-tree=$HOME'
alias dot='git --git-dir=$HOME/git/dotfiles/.git --work-tree=$HOME'

alias readme='cd ~/git/readme/'
alias react='cd ~/git/readme/packages/react/'
alias readme='cd ~/git/readme'
alias react='cd ~/git/readme/packages/react'
alias editor='cd ~/git/readme/packages/react/src/ui/MarkdownEditor'
alias testme='npm run test -- --watch packages/react/src/ui/MarkdownEditor'
alias rdmdx='cd ~/git/rdmdx'
alias markdown='cd ~/git/markdown'

alias prune-merged-branches='git branch --merged | grep -Ev "(^\*|master|main|next|dev)" | xargs git branch -d'

alias plz=sudo
alias please=sudo

alias make="make --no-print-directory"

alias tsc-diagnostics=npx tsc --diagnostics --explainFiles

alias cdf='cd $(find . -type d -print | fzf)'
6 changes: 5 additions & 1 deletion .config/kitty/kitty.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
font_family FiraCode-Retina
#font_family FiraCode-Retina
font_family Monaspace Argon Var
bold_font auto
italic_font auto
bold_italic_font auto
font_size 12.0
allow_hyperlinks yes

Expand Down
31 changes: 12 additions & 19 deletions .config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ Plug 'arcticicestudio/nord-vim'
Plug 'ayu-theme/ayu-vim'
Plug 'sainnhe/gruvbox-material'
Plug 'dracula/vim'
"Plug 'junegunn/rainbow_parentheses.vim'
"autocmd VimEnter * RainbowParentheses
"Plug 'luochen1990/rainbow'
"let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle

Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Expand All @@ -40,8 +36,9 @@ let g:coc_global_extensions = [
\ 'coc-prettier',
\ 'coc-eslint',
\ 'coc-tsserver',
\ 'coc-stylelintplus'
\ ]
" use <tab> for trigger completion and navigate to the next complete item

function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
Expand Down Expand Up @@ -108,15 +105,10 @@ nnoremap <silent> <leader>b :Buffers<CR>
nnoremap <silent> <C-f> :Files<CR>
Plug 'junegunn/goyo.vim'
Plug '[email protected]:github/copilot.vim.git'

Plug '907th/vim-auto-save'
let g:auto_save = 0
augroup ft_markdown
au!
au FileType markdown let b:auto_save = 1
augroup END

"Plug 'jdonaldson/vaxe'
let g:copilot_no_tab_map = v:true
inoremap <silent><expr> <S-TAB> copilot#Accept("")
call plug#end()

Expand All @@ -127,6 +119,8 @@ set clipboard+=unnamedplus

set expandtab
set tabstop=2
set softtabstop=2
set shiftwidth=2

set textwidth=79
set fo+=t
Expand All @@ -137,9 +131,6 @@ autocmd FileType javascript JsPreTmpl
autocmd FileType javascriptreact JsPreTmpl
autocmd FileType typescript JsPreTmpl

" markdown to html
map <F3> :%!markdown<CR>
" Stop using arrow keys!
noremap <Up> <nop>
noremap <Down> <nop>
Expand All @@ -148,9 +139,6 @@ noremap <Right> <nop>
set cmdheight=2

" Print Options
set printoptions=header:0,syntax:n,paper:letter,formfeed:y

" Don't use Ex mode, use Q for formatting
map Q gq
Expand All @@ -165,5 +153,10 @@ autocmd VimLeave * call system("tmux setw automatic-rename")

autocmd BufRead,BufNewFile *eslintrc set filetype=json

set backup
set backupdir=~/.vim/backup

highlight Comment cterm=italic gui=italic

command Bacon :r! curl -s "https://baconipsum.com/api/?type=all-meat&paras=3&format=text"
command Lemon :r! ~/bin/lemon-ipsum.js
17 changes: 17 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
name = Kelly Joseph Price
[push]
default = current
autoSetupRemote = true
[core]
pager = less -F -X
hooksPath = ~/.config/git/hooks'
Expand All @@ -12,6 +13,7 @@
enabled = true
[diff]
tool = vimdiff
alogrithm = histogram
[help]
autocorrect = 1
[filter "lfs"]
Expand All @@ -26,3 +28,18 @@
helper = store
[url "[email protected]:"]
insteadOf = https://github.com/
[pull]
ff = only
rebase = true
[remote]
pushDefault = origin
[advice]
skippedCherryPicks = false
[init]
defaultBranch = main
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
2 changes: 1 addition & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ COMPLETION_WAITING_DOTS="true"
# Add wisely, as too many plugins slow down shell startup.
plugins=(
fzf
zsh-vi-mode
# zsh-vi-mode
)

source $ZSH/oh-my-zsh.sh
Expand Down
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# dotfiles

## TODO
### Setup

* setup instructions
* host-specific config
Install packages:
```
$ sudo apt install zsh git tmux neovim curl ripgrep
```

### Setup
Switch to `zsh`:
```
$ sudo chsh -s /bin/zsh $USER
```

* install zsh git tmux neovim curl fzf
* `sudo chsh -s /bin/zsh $USER`
* setup ssh
* * setup ssh-agent
`ssh-add .ssh/id_rsa`
Expand Down Expand Up @@ -43,3 +46,7 @@ sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.
tmux source ~/.tmux.conf
ctrl+a I
```

### TPM

ctrl+a I

0 comments on commit ff666d2

Please sign in to comment.