add aliases for keyboard layouts
This commit is contained in:
parent
8c3a3e9462
commit
52b8328a78
2 changed files with 15 additions and 4 deletions
|
@ -151,3 +151,6 @@ alias updateTime="sudo ntpd -qg"
|
|||
# Keyboard - reset
|
||||
# Sometimes, if I turn the screens off, the keyboard resets itself to defaults. Not sure why but this will put my keyboard back to how I like it
|
||||
alias kb="xmodmap ~/.Xmodmap; xset r rate 200 70; xcape"
|
||||
|
||||
alias colemak="setxkbmap -layout gb,gb -variant \"colemak,\" -option grp:shifts_toggle"
|
||||
alias qwerty="setxkbmap -layout gb"
|
||||
|
|
|
@ -276,17 +276,25 @@ function debugToggle(){
|
|||
#These search functions use grep to search all sub-folders of the current working directory
|
||||
searchjs() {
|
||||
# This will search through .js and .es6 files but won't search minified files
|
||||
grep -r -i -n --color="always" --include=\*.{js,es6} --exclude=\*.min.js "$1" .
|
||||
grep -r -i -n --color="always" --include=\*.{js,es6} --exclude=\*.min.js "$1" . | tee /tmp/lastSearch
|
||||
}
|
||||
searchcss() {
|
||||
# This will search through .css and .less files but won't search minified files
|
||||
grep -r -i -n --color="always" --include=\*.{css,less,scss,sass} --exclude=\*.min.css "$1" .
|
||||
grep -r -i -n --color="always" --include=\*.{css,less,scss,sass} --exclude=\*.min.css "$1" . | tee /tmp/lastSearch
|
||||
}
|
||||
searchphp() {
|
||||
grep -r -i -n --color="always" --include=\*.{php,phtml} "$1" .
|
||||
grep -r -i -n --color="always" --include=\*.{php,phtml} "$1" . | tee /tmp/lastSearch
|
||||
}
|
||||
searchhtml() {
|
||||
grep -r -i -n --color="always" --include=\*.{html,htm} "$1" .
|
||||
grep -r -i -n --color="always" --include=\*.{html,htm} "$1" . | tee /tmp/lastSearch
|
||||
}
|
||||
|
||||
ops() {
|
||||
responce=$(cat /tmp/lastSearch | slmenu -b -l $(tput lines) | sed 's/\x1B\[[0-9;]\+[A-Za-z]//g')
|
||||
echo "responce"
|
||||
file=$(echo "$responce" | awk -F ':' '{print $1}')
|
||||
line=$(echo "$responce" | awk -F ':' '{print $2}')
|
||||
vim +${line} ${file}
|
||||
}
|
||||
|
||||
png() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue