Make tmux use XDG basedir - somewhat
This commit is contained in:
parent
3ce7aadf89
commit
39a257cba5
7 changed files with 9 additions and 4 deletions
|
@ -17,7 +17,7 @@ if which gpg >/dev/null 2>&1 || which gpg2 >/dev/null 2>&1; then
|
|||
mkdir -p $HOME/.local/share/gnupg
|
||||
link_file gpg.conf .local/share/gnupg/gpg.conf ../../../
|
||||
fi
|
||||
which tmux >/dev/null 2>&1 && link_file tmux.conf .tmux.conf
|
||||
which tmux >/dev/null 2>&1 && link_file tmux .config/tmux ../
|
||||
which vim >/dev/null 2>&1 && link_file vim .config/vim ../
|
||||
which fish >/dev/null 2>&1 && link_file fish .config/fish ../
|
||||
which youtube-dl >/dev/null 2>&1 && link_file youtube-dl .config/youtube-dl ../
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function gpg-sftp
|
||||
function gpg-sftp --wraps sftp
|
||||
set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh
|
||||
sftp $argv
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function gpg-ssh-add
|
||||
function gpg-ssh-add --wraps ssh-add
|
||||
set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh
|
||||
ssh-add $argv
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function gpg-ssh
|
||||
function gpg-ssh --wraps ssh
|
||||
set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh
|
||||
ssh $argv
|
||||
end
|
||||
|
|
3
fish/functions/tmux.fish
Normal file
3
fish/functions/tmux.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function tmux
|
||||
command tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf $argv
|
||||
end
|
2
zshrc
2
zshrc
|
@ -191,6 +191,8 @@ make() {
|
|||
esac
|
||||
}
|
||||
|
||||
alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf"
|
||||
|
||||
# pkgsrc does not like MAKEFLAGS including -j
|
||||
which pkg_chk &>/dev/null && alias pkg_chk="MAKEFLAGS= pkg_chk"
|
||||
which pkg_rolling-replace &>/dev/null &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue