diff --git a/.config/npm/npmrc b/.config/npm/npmrc new file mode 100644 index 0000000..c2da224 --- /dev/null +++ b/.config/npm/npmrc @@ -0,0 +1,3 @@ +prefix=${XDG_DATA_HOME}/npm +cache=${XDG_CACHE_HOME}/npm +init-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim deleted file mode 100644 index f16ddf6..0000000 --- a/.config/nvim/init.vim +++ /dev/null @@ -1,78 +0,0 @@ -if empty(glob('~/.local/share/nvim/site/autoload/plug.vim')) - silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs - \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim - autocmd VimEnter * PlugInstall --sync | source $MYVIMRC -endif - - -call plug#begin('~/.local/share/nvim/plugged') - Plug 'vim-airline/vim-airline' - Plug 'vim-airline/vim-airline-themes' - - - Plug 'tpope/vim-fugitive' - Plug 'dense-analysis/ale' - Plug 'chriskempson/base16-vim' - - Plug 'vimwiki/vimwiki' - - "language support - Plug 'tbastos/vim-lua' - Plug 'ziglang/zig.vim' - - - -call plug#end() - -"vimwiki -set nocompatible -filetype plugin on -syntax on - -"enable ale completion -let g:ale_completion_enabled = 1 - -"airline setup - "let g:airline_extensions = [] - let g:airline#extensions#tabline#enabled = 1 - let g:airline#extensions#ale#enabled = 1 - let g:airline_powerline_fonts = 1 - let g:airline_theme='simple' - -"syntax numbers, wildmode - syntax on - set ruler - set number "relativenumber - set wildmode=longest,list,full - -"Tab Config - set expandtab "converts tabs to spaces - set shiftwidth=4 - set tabstop=4 - -"split navigation - nnoremap :if &modifiable && !&readonly && &modified :write :endif:bnext - nnoremap :if &modifiable && !&readonly && &modified :write :endif:bprevious - - nnoremap :ALEGoToDefinition - - - -"make vim use system clipboard by default. ONLY FOR NEOVIM - set clipboard+=unnamedplus - - let vim_markdown_preview_browser='librewolf' - let vim_markdown_preview_use_xdg_open=1 - -"enable unicode support if possible -if has("multi_byte") - if &termencoding == "" - let &termencoding = &encoding - endif - set encoding=utf-8 - setglobal fileencoding=utf-8 - " Uncomment to have 'bomb' on by default for new files. - " Note, this will not apply to the first, empty buffer created at Vim startup. - "setglobal bomb - set fileencodings=ucs-bom,utf-8,latin1 -endif diff --git a/.config/shell/cleanup.sh b/.config/shell/cleanup.sh index ac88e72..5080933 100755 --- a/.config/shell/cleanup.sh +++ b/.config/shell/cleanup.sh @@ -31,3 +31,5 @@ export TMUX_TMPDIR="$XDG_RUNTIME_DIR" export ANDROID_SDK_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/android" export MBSYNCRC="${XDG_CONFIG_HOME:-$HOME/.config}/mbsync/config" export ELECTRUMDIR="${XDG_DATA_HOME:-$HOME/.local/share}/electrum" +export GHCUP_USE_XDG_DIRS=true +export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 09c110a..70fa682 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -94,3 +94,5 @@ fi # Load zsh-syntax-highlighting; should be last. source $HOME/.local/share/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null + +[ -f "/home/alex/.local/share/ghcup/env" ] && source "/home/alex/.local/share/ghcup/env" # ghcup-env