From 43a2d0de2c50ec6e5b1713da4dba32c678624c63 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Wed, 6 Mar 2019 16:59:45 +0000 Subject: Prefer x KBD for XResources I'm finding that I'm visiting XResources more frequently than I'm visiting ~/.xinitrc or other X files. --- configs/shared/zsh/aliases.zsh | 21 +++++++++++---------- configs/shared/zsh/variables.zsh | 13 +++++++++++-- 2 files changed, 22 insertions(+), 12 deletions(-) (limited to 'configs/shared/zsh') diff --git a/configs/shared/zsh/aliases.zsh b/configs/shared/zsh/aliases.zsh index 578c4e884aad..ea5fbc450b70 100644 --- a/configs/shared/zsh/aliases.zsh +++ b/configs/shared/zsh/aliases.zsh @@ -6,7 +6,7 @@ alias ls="exa" alias ll="exa -l" alias la="exa -la" alias lorem="echo Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." -alias e="emacsclient --alternate-editor=${EDITOR}" +alias e="emacsclient --no-wait --alternate-editor=vim" alias d="docker" alias dps="docker ps" alias dpsa="docker ps -a" @@ -60,23 +60,24 @@ alias vim=nvim # prefer neovim to vim alias links='find ~ -maxdepth 1 -type l -exec exa {} \;' # list all of the links in the home directory alias ra=ranger alias chrome=google-chrome +alias btctl=bluetoothctl # couple the e* aliases to the e* kbds in vim -alias ev='vim ~/.config/nvim/init.vim' -alias ee='vim ~/.emacs.d/init.el' -alias ez='vim ~/.zshrc' -alias ea='vim ~/aliases.zsh' -alias ef='vim ~/functions.zsh' -alias el='vim ~/variables.zsh' -alias ex='vim ~/.xsessionrc' -alias ei='vim ~/.config/i3/config' +alias ev='e ~/.config/nvim/init.vim' +alias ee='e ~/.emacs.d/init.el' +alias ez='e ~/.zshrc' +alias ea='e ~/aliases.zsh' +alias ef='e ~/functions.zsh' +alias el='e ~/variables.zsh' +alias ex='e ~/.Xresources' +alias ei='e ~/.config/i3/config' # couple the s* aliases to the s* kbds in vim alias sz='source ~/.zshrc' alias sa='source ~/aliases.zsh' alias sf='source ~/functions.zsh' alias sl='source ~/variables.zsh' -alias sx='sudo systemctl restart display-manager' +alias sx='xrdb ~/.Xresources' alias si='i3-msg restart' # Google aliases diff --git a/configs/shared/zsh/variables.zsh b/configs/shared/zsh/variables.zsh index 05c5edc81754..830170ddc8c8 100644 --- a/configs/shared/zsh/variables.zsh +++ b/configs/shared/zsh/variables.zsh @@ -1,8 +1,17 @@ -EDITOR=emacs +export TERMINAL=urxvtc +export EDITOR=emacsclient + BROWSER=google-chrome NIXIFY="$HOME/programming/nixify" DATE_FMT=%b-%d-%Y_%T # my preferred date formatting string used for generated filename +# ZSH's static named directories +hash -d pro="$HOME/programming" +hash -d dot="$HOME/programming/dotfiles" +hash -d citc="/google/src/cloud/$USER" +hash -d doc="$HOME/Documents" +hash -d d="$HOME/Downloads" + # commonly used config files v="$HOME/.config/nvim/init.vim" e="$HOME/.emacs.d/init.el" @@ -10,5 +19,5 @@ z="$HOME/.zshrc" a="$HOME/aliases.zsh" f="$HOME/functions.zsh" l="$HOME/variables.zsh" # v is taken by vim -x="$HOME/.xsessionrc" +x="$HOME/.Xresources" i="$HOME/.config/i3/config" -- cgit 1.4.1