diff --git a/dotfiles/aliases b/dotfiles/aliases index e1fbcb2..e92104b 100755 --- a/dotfiles/aliases +++ b/dotfiles/aliases @@ -56,3 +56,6 @@ alias dfh="df -h -x tmpfs -x devtmpfs" # Clear the GPG agent alias clear-gpg-agent="echo RELOADAGENT | gpg-connect-agent" + +# Battery details +alias bat-details='upower -i $(upower -e | grep battery)' diff --git a/dotfiles/profile b/dotfiles/profile index b829cb7..c4c39fe 100755 --- a/dotfiles/profile +++ b/dotfiles/profile @@ -34,4 +34,9 @@ if [ -z "${LIBVIRT_DEFAULT_URI}" ] ; then fi fi +# Got rust? (gvim, etc.) +if test -d "${HOME}/.cargo/bin" ; then + PATH="${PATH}:${HOME}/.cargo/bin" +fi + test -f "${HOME}/.profile.local" && . "${HOME}/.profile.local" diff --git a/dotfiles/vimrc b/dotfiles/vimrc index f57d429..7370fda 100644 --- a/dotfiles/vimrc +++ b/dotfiles/vimrc @@ -154,16 +154,15 @@ nnoremap :SyntasticCheck :Errors " Currently only works on debian-based systems... " It also does not play nicely with virtual envs, so we skip it then if isdirectory("/usr/share/vim-youcompleteme") && empty($VIRTUAL_ENV) - "let g:ycm_gopls_binary_path='gopls' - let g:ycm_autoclose_preview_window_after_insertion=1 set runtimepath+=/usr/share/vim-youcompleteme - " Add rust settings - let g:tmp_rust_path=trim(system("rustc --print sysroot")) - if isdirectory(g:tmp_rust_path) - let g:ycm_rust_toolchain_root=g:tmp_rust_path - endif - unlet! g:tmp_rust_path endif +let g:ycm_autoclose_preview_window_after_insertion=1 +" Add rust settings +let g:tmp_rust_path=trim(system("rustc --print sysroot")) +if isdirectory(g:tmp_rust_path) + let g:ycm_rust_toolchain_root=g:tmp_rust_path +endif +unlet! g:tmp_rust_path " Enable vim-bracketed-paste mode " From