Adds site specific .bin folder to path
This commit is contained in:
parent
644b00f037
commit
ccdd9dd57d
4 changed files with 12 additions and 3 deletions
|
@ -26,4 +26,4 @@ while [ $# != 0 ]; do
|
||||||
esac
|
esac
|
||||||
done
|
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
2
dwm
|
@ -1 +1 @@
|
||||||
Subproject commit 7c01eac9a7e543a78240c36e254a51ea2907aed7
|
Subproject commit 046b66b1d614883e8987d4a1fa9b0a0890c813d6
|
|
@ -50,6 +50,7 @@ function mycd() {
|
||||||
echo "Can't cd"
|
echo "Can't cd"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
updatePath
|
||||||
}
|
}
|
||||||
alias cd="mycd"
|
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
|
# 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(){
|
function updatePath(){
|
||||||
|
# Reset the path
|
||||||
|
PATH=$(echo $PATH | sed -E "s/:\/home\/jonathan\/\.bin\/.*//g")
|
||||||
for d in ~/.bin/*/; do
|
for d in ~/.bin/*/; do
|
||||||
if [[ :$PATH: != *:"$d":* ]] ; then
|
if [[ :$PATH: != *:"$d":* ]] ; then
|
||||||
PATH+=":$d"
|
PATH+=":$d"
|
||||||
fi
|
fi
|
||||||
done
|
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
|
# 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
|
# Make key firing much faster
|
||||||
xset r rate 200 70
|
xset r rate 200 70
|
||||||
# Need this for making qt applications use gtk theme ( I think )
|
# Need this for making qt applications use gtk theme ( I think )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue