Skip to content

Commit

Permalink
fix path, load nvm, fix wildignore vim, remove la
Browse files Browse the repository at this point in the history
  • Loading branch information
jpabbuehl committed Jun 22, 2024
1 parent 4e380e6 commit 9975fdb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 1 addition & 12 deletions .dot_bash
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,14 @@ 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'
}

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"
}
Expand Down
4 changes: 4 additions & 0 deletions .dot_js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ set wildchar=<TAB>
" 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
Expand Down

0 comments on commit 9975fdb

Please sign in to comment.