From 77cd142cbfceda8d4fe644acff46b7f8a3463e9e Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 13 Dec 2018 16:51:29 +0100 Subject: Add zsh aliases --- arch/base-packages/PKGBUILD | 1 + git/.git_template/hooks/ctags | 2 +- git/.gitconfig | 1 + python/.pythonrc | 5 ++++- qutebrowser/.config/qutebrowser/style.css | 8 ++++++-- qutebrowser/.local/share/qutebrowser/userscripts/quickmarks | 2 +- qutebrowser/.local/share/qutebrowser/userscripts/tabs | 2 +- vim/.vim/after/ftplugin/tex/mappings.vim | 6 ------ vim/.vimrc | 2 +- xdg-open/.config/mimeapps.list | 1 + xinit/.xinitrc | 2 +- zsh/.zshrc | 10 ++++++++++ 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 {{ \left\{ iabbrev }} \right\} iabbrev [[ \left[ iabbrev ]] \right] -iabbrev == \,=\, -iabbrev >> \,\geq\, -iabbrev << \,\leq\, -iabbrev ++ \,+\, -iabbrev -- \,-\, iabbrev ga \alpha iabbrev gb \beta @@ -45,7 +40,6 @@ iabbrev gF \Phi nnoremap i :VimtexCompile nnoremap e :VimtexErrors nnoremap o :VimtexView -nnoremap k :VimtexStop:VimtexClean nnoremap t :VimtexTocToggle nnoremap h :split header.sty nnoremap d :!latexdiff-git main_old.tex main.tex > diff.tex 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 y :call remembrall#remind('n', 'y') augroup remembrall - autocmd FileType tex nnoremap ,l Remembrall(',l') + autocmd FileType tex nnoremap ,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" + # }}} -- cgit v1.2.3