From 9975fdb664bb705969ad9b32f40123a8e8b468a3 Mon Sep 17 00:00:00 2001 From: Jean-Paul Abbuehl Date: Sat, 22 Jun 2024 07:13:50 +0200 Subject: [PATCH] fix path, load nvm, fix wildignore vim, remove la --- .bashrc | 2 +- .dot_bash | 13 +------------ .dot_js | 4 ++++ .vimrc | 2 +- 4 files changed, 7 insertions(+), 14 deletions(-) diff --git a/.bashrc b/.bashrc index d929278..7b248aa 100644 --- a/.bashrc +++ b/.bashrc @@ -48,7 +48,7 @@ fi # Source External Configuration Files # Loop through and source each file if it exists -for file in .bash_prompt .path .dot_bash .dot_git .dot_docker .dot_kubernetes .dot_python .dot_js .dot_others .key; do +for file in .bash_prompt .path .dot_bash .dot_git .dot_docker .dot_kubernetes .dot_python .dot_js .dot_others; do if [ -f "$HOME/$file" ]; then . "$HOME/$file" else diff --git a/.dot_bash b/.dot_bash index 39fceab..9d06e2c 100644 --- a/.dot_bash +++ b/.dot_bash @@ -19,7 +19,7 @@ export HISTIGNORE="&:[ ]*:exit:ls:bg:fg:history:clear" # Patterns to ignore in h # Custom functions sshkey() { - cat ~/.ssh/id_rsa.pub | pbcopy + cat ~/.ssh/id_ed25519.pub | pbcopy echo 'Public key in clipboard' } @@ -27,17 +27,6 @@ md() { mkdir -p "$@" && cd "$@" } -la() { - ls -l "$@" | awk '{ - k=0; - for (i=0;i<=8;i++) - k+=((substr($1,i+2,1)~/[rwx]/) *2^(8-i)); - if (k) - printf("%0o ",k); - printf(" %9s %3s %2s %5s %6s %s %s %s\n", $3, $6, $7, $8, $5, $9,$10, $11); - }' -} - cp2() { rsync -WavP --human-readable --progress "$1" "$2" } diff --git a/.dot_js b/.dot_js index 9dd4c32..ca96ed5 100644 --- a/.dot_js +++ b/.dot_js @@ -1,5 +1,9 @@ #!/bin/bash +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion + # PNPM (JavaScript package manager) configuration # Set PNPM home directory diff --git a/.vimrc b/.vimrc index 2c217cb..2dd3395 100644 --- a/.vimrc +++ b/.vimrc @@ -47,7 +47,7 @@ set wildchar= " Ignore case in command line expansion for usability set wildignorecase " Exclude certain files and directories from command line expansion -set wildignore +set wildignore+=*.o,*~,*.pyc,*.swp,*.zip,*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store,*/node_modules/*,*/bower_components/* " ============================================================ " UI Configurations