summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-12-13 16:51:29 +0100
committerUrbain Vaes <urbain@vaes.uk>2018-12-13 16:51:29 +0100
commit77cd142cbfceda8d4fe644acff46b7f8a3463e9e (patch)
treebb53483c102c5728b1ccbc5add11b1d09a4b991c
parent264b48ff259714217ed0c056a99d038dde872249 (diff)
Add zsh aliases
-rw-r--r--arch/base-packages/PKGBUILD1
-rwxr-xr-xgit/.git_template/hooks/ctags2
-rw-r--r--git/.gitconfig1
-rw-r--r--python/.pythonrc5
-rw-r--r--qutebrowser/.config/qutebrowser/style.css8
-rwxr-xr-xqutebrowser/.local/share/qutebrowser/userscripts/quickmarks2
-rwxr-xr-xqutebrowser/.local/share/qutebrowser/userscripts/tabs2
-rw-r--r--vim/.vim/after/ftplugin/tex/mappings.vim6
-rw-r--r--vim/.vimrc2
-rw-r--r--xdg-open/.config/mimeapps.list1
-rwxr-xr-xxinit/.xinitrc2
-rw-r--r--zsh/.zshrc10
12 files changed, 28 insertions, 14 deletions
diff --git a/arch/base-packages/PKGBUILD b/arch/base-packages/PKGBUILD
index 4ec2137..3f51622 100644
--- a/arch/base-packages/PKGBUILD
+++ b/arch/base-packages/PKGBUILD
@@ -23,6 +23,7 @@ depends=(alsa-utils
i3lock
i3status
inotify-tools
+ inkscape
ipython
isync
lsof
diff --git a/git/.git_template/hooks/ctags b/git/.git_template/hooks/ctags
index 6fc53b6..a52759d 100755
--- a/git/.git_template/hooks/ctags
+++ b/git/.git_template/hooks/ctags
@@ -3,5 +3,5 @@ set -e
PATH="/usr/local/bin:$PATH"
dir="$(git rev-parse --git-dir)"
trap 'rm -f "$dir/$$.tags"' EXIT
-git ls-files | ctags --tag-relative -L - -f"$dir/$$.tags" --languages=-javascript,sql
+git ls-files | ctags --tag-relative=yes -L - -f"$dir/$$.tags" --languages=-javascript,sql
mv "$dir/$$.tags" "$dir/tags"
diff --git a/git/.gitconfig b/git/.gitconfig
index 8b42407..2f0bbb3 100644
--- a/git/.gitconfig
+++ b/git/.gitconfig
@@ -13,6 +13,7 @@
sslverify = false
[commit]
gpgSign = true
+ verbose = true
[push]
default = simple
[merge]
diff --git a/python/.pythonrc b/python/.pythonrc
index b124c6f..58518f6 100644
--- a/python/.pythonrc
+++ b/python/.pythonrc
@@ -1,7 +1,10 @@
-import importlib
import math
+import importlib
import matplotlib
+
import numpy as np
+np.set_printoptions(linewidth=120)
+
import sympy as sym
sym.init_printing()
diff --git a/qutebrowser/.config/qutebrowser/style.css b/qutebrowser/.config/qutebrowser/style.css
index 81e3491..325fc5c 100644
--- a/qutebrowser/.config/qutebrowser/style.css
+++ b/qutebrowser/.config/qutebrowser/style.css
@@ -1,8 +1,12 @@
-div#spon_links {
+div#spon_links {
display: none !important;
}
-div#adBlock {
+div#adBlock {
+ display: none !important;
+}
+
+div#spon-results {
display: none !important;
}
diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/quickmarks b/qutebrowser/.local/share/qutebrowser/userscripts/quickmarks
index a55b23b..9f6acf1 100755
--- a/qutebrowser/.local/share/qutebrowser/userscripts/quickmarks
+++ b/qutebrowser/.local/share/qutebrowser/userscripts/quickmarks
@@ -2,7 +2,7 @@
if [ -n "$1" ]
then
- echo "open $(echo $1 | awk '{print $NF}')" >> $QUTE_FIFO
+ echo "open $(echo "$1" | awk '{print $NF}')" >> "$QUTE_FIFO"
exit;
fi
diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/tabs b/qutebrowser/.local/share/qutebrowser/userscripts/tabs
index 7f9e226..c5a5538 100755
--- a/qutebrowser/.local/share/qutebrowser/userscripts/tabs
+++ b/qutebrowser/.local/share/qutebrowser/userscripts/tabs
@@ -7,7 +7,7 @@ if [ -n "$1" ]
then
selected_id=$(echo "$tabs" | grep "$@" | sed 's/^.*window":\([0-9]*\).*$/\1/')
i3-msg "[id=$selected_id] focus" > /dev/null 2>&1
- exit;
+ exit
fi
# Sanitized List of tabs
diff --git a/vim/.vim/after/ftplugin/tex/mappings.vim b/vim/.vim/after/ftplugin/tex/mappings.vim
index 5f49c5f..a89893e 100644
--- a/vim/.vim/after/ftplugin/tex/mappings.vim
+++ b/vim/.vim/after/ftplugin/tex/mappings.vim
@@ -4,11 +4,6 @@ iabbrev <buffer> {{ \left\{
iabbrev <buffer> }} \right\}
iabbrev <buffer> [[ \left[
iabbrev <buffer> ]] \right]
-iabbrev <buffer> == \,=\,
-iabbrev <buffer> >> \,\geq\,
-iabbrev <buffer> << \,\leq\,
-iabbrev <buffer> ++ \,+\,
-iabbrev <buffer> -- \,-\,
iabbrev <buffer> ga \alpha
iabbrev <buffer> gb \beta
@@ -45,7 +40,6 @@ iabbrev <buffer> gF \Phi
nnoremap <buffer> <LocalLeader>i :VimtexCompile<CR>
nnoremap <buffer> <LocalLeader>e :VimtexErrors<CR>
nnoremap <buffer> <LocalLeader>o :VimtexView<CR>
-nnoremap <buffer> <LocalLeader>k :VimtexStop<CR>:VimtexClean<CR>
nnoremap <buffer> <LocalLeader>t :VimtexTocToggle<CR>
nnoremap <buffer> <LocalLeader>h :split header.sty<CR>
nnoremap <buffer> <LocalLeader>d :!latexdiff-git main_old.tex main.tex > diff.tex<CR>
diff --git a/vim/.vimrc b/vim/.vimrc
index 1119b1f..dcb7149 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -163,7 +163,7 @@ if &runtimepath =~ 'remembrall'
nnoremap <silent> y :<c-u>call remembrall#remind('n', 'y')<cr>
augroup remembrall
- autocmd FileType tex nnoremap <buffer> <silent> <nowait> <expr> ,l Remembrall(',l')
+ autocmd FileType tex nnoremap <buffer> <silent> <expr> ,l Remembrall(',l')
augroup END
endif
diff --git a/xdg-open/.config/mimeapps.list b/xdg-open/.config/mimeapps.list
index 59d1326..e7956c6 100644
--- a/xdg-open/.config/mimeapps.list
+++ b/xdg-open/.config/mimeapps.list
@@ -9,6 +9,7 @@
text/plain=nvim.desktop;
image/jpeg=feh.desktop;
image/png=feh.desktop;
+image/jpg=feh.desktop;
image/x-eps=org.pwmt.zathura.desktop;
inode/directory=vifm.desktop;nautilus.desktop;
text/html=qutebrowser.desktop;firefox.desktop;
diff --git a/xinit/.xinitrc b/xinit/.xinitrc
index 9219af4..74cccb4 100755
--- a/xinit/.xinitrc
+++ b/xinit/.xinitrc
@@ -13,7 +13,7 @@ xrdb $HOME/.Xresources/$COLORSCHEME
# Background
feh --bg-fill /home/urbain/documents/wallpapers/pagoda.jpg
-# Disable screen going blank
+# Disable screen going to sleep
xset -dpms
xset s off
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 16327cf..2875f1b 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -181,4 +181,14 @@ alias -s pdf='xdg-open'
# Global
alias -g grep='grep --color=auto --exclude-dir={.git,.hg}'
+# Pacman
+alias pacup='sudo pacman -Syu'
+alias pacin='sudo pacman -S'
+alias pacrm='sudo pacman -Rs'
+alias pacs='pacman -Ss'
+
+# Systemctl
+alias sysnet="systemctl restart NetworkManager.service"
+alias sysvpn="systemctl restart openvpn-client@ic.service"
+
# }}}