Adds site specific .bin folder to path

Jonathan Hodgson 6 years ago
parent 478f9c012b
commit 1bfcbd3205
  1. 2
      bin/search/searchcss
  2. 2
      dwm
  3. 9
      shells/functions
  4. 2
      x/xinitrc

@ -26,4 +26,4 @@ while [ $# != 0 ]; do
esac
done
grep -r -i -n --color="always" --include=\*.{css,less,scss,sass} --exclude=\*.min.css -A "$after" -B "$before" "$search" .
grep -r -i -n --color="always" --include=\*.{css,less,scss,sass} --exclude=\*.min.css -A $after -B $before $search .

2
dwm

@ -1 +1 @@
Subproject commit 7c01eac9a7e543a78240c36e254a51ea2907aed7
Subproject commit 046b66b1d614883e8987d4a1fa9b0a0890c813d6

@ -50,6 +50,7 @@ function mycd() {
echo "Can't cd"
fi
fi
updatePath
}
alias cd="mycd"
@ -221,11 +222,19 @@ function debugToggle(){
}
# Adds sub folders in by .bin directory to the PATH if they are not already in it
# Also adds .bin to the path adjacent to any public_html folder
function updatePath(){
# Reset the path
PATH=$(echo $PATH | sed -E "s/:\/home\/jonathan\/\.bin\/.*//g")
for d in ~/.bin/*/; do
if [[ :$PATH: != *:"$d":* ]] ; then
PATH+=":$d"
fi
done
public_html=${PWD%/public_html*}/public_html
if [ -d $public_html ]; then
PATH+=":${PWD%/public_html*}/.bin"
fi
}

@ -1,5 +1,5 @@
# Make keyboard layout coleemak but pushing both shifts will toggle to qwerty
setxkbmap -layout gb,gb -variant "colemak," -option grp:shifts_toggle
# setxkbmap -layout gb,gb -variant "colemak," -option grp:shifts_toggle
# Make key firing much faster
xset r rate 200 70
# Need this for making qt applications use gtk theme ( I think )

Loading…
Cancel
Save