fix vscode config; clean zshrc

This commit is contained in:
neoteny 2021-12-01 23:23:25 +02:00
parent 479f60aaa5
commit cb0413010b
2 changed files with 12 additions and 9 deletions

View file

@ -1,5 +1,5 @@
{ {
"workbench.colorTheme": "GitHub Light", "workbench.colorTheme": "Quiet Light",
"workbench.iconTheme": "material-icon-theme", "workbench.iconTheme": "material-icon-theme",
"workbench.sideBar.location": "left", "workbench.sideBar.location": "left",
"workbench.startupEditor": "none", "workbench.startupEditor": "none",
@ -22,7 +22,7 @@
"editor.wordWrap": "off", "editor.wordWrap": "off",
"editor.tabSize": 4, "editor.tabSize": 4,
// Files // Files
"explorer.compactFolders": false, "explorer.compactFolders": true,
"explorer.confirmDragAndDrop": false, "explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false, "explorer.confirmDelete": false,
"files.trimTrailingWhitespace": true, "files.trimTrailingWhitespace": true,
@ -41,13 +41,13 @@
"go.lintOnSave": "package", "go.lintOnSave": "package",
"go.lintTool": "golangci-lint", "go.lintTool": "golangci-lint",
"go.formatTool": "gofumpt", "go.formatTool": "gofumpt",
"python.formatting.provider": "black",
"python.analysis.autoImportCompletions": true,
"python.formatting.blackPath": "~/.local/bin/black",
"[go]": { "[go]": {
"editor.insertSpaces": false "editor.insertSpaces": false
}, },
"[python]": { "[python]": {
"python.formatting.provider": "black",
"python.analysis.autoImportCompletions": true,
"python.formatting.blackPath": "~/.local/bin/black",
"editor.tabSize": 4 "editor.tabSize": 4
}, },
"[javascript]": { "[javascript]": {
@ -59,5 +59,8 @@
"editor.defaultFormatter": "esbenp.prettier-vscode", "editor.defaultFormatter": "esbenp.prettier-vscode",
"typescript.suggestionActions.enabled": false, "typescript.suggestionActions.enabled": false,
"editor.tabSize": 2 "editor.tabSize": 2
},
"files.associations": {
"justfile": "makefile"
} }
} }

6
zshrc
View file

@ -1,6 +1,6 @@
## Variables ## Variables
export GOPATH="$HOME/go" export GOPATH="$HOME/go"
export PATH="$HOME/bin:$HOME/.local/bin:$HOME/.golang/bin:$GOPATH/bin:$HOME/.yarn/bin:$HOME/.luarocks/bin:$HOME/.cargo/bin:$PATH" export PATH="$HOME/bin:$HOME/.local/bin:$HOME/.golang/bin:$GOPATH/bin:$HOME/.yarn/bin:$HOME/.cargo/bin:$PATH"
export EDITOR="nvim" export EDITOR="nvim"
## Oh my zsh ## Oh my zsh
@ -15,9 +15,9 @@ eval "$(zoxide init zsh)"
## Aliases ## Aliases
alias cls="clear" cp="cp -r" mkdir="mkdir -p" alias cls="clear" cp="cp -r" mkdir="mkdir -p"
alias gor="go run" gob="go build" gog="go get" goi="go install" got="go test" gov="go vet" alias gor="go run" gob="go build" gog="go get"
alias ...="cd ../.." .3="cd ../../.." alias ...="cd ../.." .3="cd ../../.."
alias v="nvim" vim="v" asdfi=". /opt/asdf-vm/asdf.sh" alias v="nvim" vim="v" vi="vim" asdfi=". /opt/asdf-vm/asdf.sh"
if [[ -f "/bin/exa" ]]; then if [[ -f "/bin/exa" ]]; then
alias ls="exa -l" ll="ls" la="ls -a" alias ls="exa -l" ll="ls" la="ls -a"