mirror of https://github.com/mitchell/dotfiles.git
Replace ssh-a alias with ssh_a function ...
Update default .xinitrc in provision_linux
This commit is contained in:
parent
5ecb8c98c2
commit
0c54457655
|
@ -8,7 +8,6 @@ function define_aliases -a uname -d 'Defines aliases for commonly used commands'
|
|||
alias fromcb 'xclip -out -selection clipboard'
|
||||
alias ssh-rm 'ssh-keygen -f ~/.ssh/known_hosts -R'
|
||||
alias wiki 'nvim +VimwikiIndex'
|
||||
alias ssh-a 'ssh-add ~/.secrets/id_ed25519'
|
||||
alias age-p 'age --armor --passphrase'
|
||||
alias age-d 'age --decrypt --identity ~/.secrets/id_ed25519'
|
||||
alias age-e 'age --armor --recipient (cat ~/.secrets/id_ed25519.pub)'
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
function ssh_a -d 'Shortcut for adding keys to ssh agent'
|
||||
argparse --max-args 1 's/seedly' 'r/rsa' -- $argv
|
||||
|
||||
if test -n "$_flag_s"
|
||||
ssh-add ~/.secrets/seedly_ed25519
|
||||
else if test -n "$_flag_r"
|
||||
ssh-add ~/.secrets/id_rsa
|
||||
else
|
||||
ssh-add ~/.secrets/id_ed25519
|
||||
end
|
||||
end
|
|
@ -131,7 +131,41 @@ function provision_desktop_env -d 'Install base desktop utilities and configure
|
|||
or return $status
|
||||
|
||||
log 'Setting xinitrc'
|
||||
echo 'exec bspwm' >~/.xinitrc
|
||||
echo '#!/bin/sh
|
||||
|
||||
userresources=$HOME/.Xresources
|
||||
usermodmap=$HOME/.Xmodmap
|
||||
sysresources=/etc/X11/xinit/.Xresources
|
||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||
|
||||
# merge in defaults and keymaps
|
||||
|
||||
if [ -f $sysresources ]; then
|
||||
xrdb -merge $sysresources
|
||||
fi
|
||||
|
||||
if [ -f $sysmodmap ]; then
|
||||
xmodmap $sysmodmap
|
||||
fi
|
||||
|
||||
if [ -f "$userresources" ]; then
|
||||
xrdb -merge "$userresources"
|
||||
fi
|
||||
|
||||
if [ -f "$usermodmap" ]; then
|
||||
xmodmap "$usermodmap"
|
||||
fi
|
||||
|
||||
# start some nice programs
|
||||
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
done
|
||||
unset f
|
||||
fi
|
||||
|
||||
exec bspwm' >~/.xinitrc
|
||||
|
||||
log 'Installing arc-gruvbox theme'
|
||||
mkdir -p ~/.themes
|
||||
|
|
Loading…
Reference in New Issue