config: add server bin dir

This commit is contained in:
xeruf 2022-07-06 09:10:13 +02:00
parent 61e8b3ad09
commit 48f21cd4a0
7 changed files with 14 additions and 11 deletions

View File

@ -313,6 +313,9 @@ npm-reinstall() {
npm install
}
# Reconnect to ONKYO since it is buggy
alias onkyo='bluetoothctl disconnect 00:09:B0:1D:DC:98 && sleep 1 && bluetoothctl connect 00:09:B0:1D:DC:98'
# Custom tools {{{1
sedcomment() { sed -i "s/$1/#\0/" "${@:2}"; }

View File

@ -1,3 +1,8 @@
test -z "$DISPLAY" || return 0
PATH="$PATH:$HOME/.local/bin/server"
## STACKSPIN
export STACKSPIN="${STACKSPIN:-$HOME/projects/stackspin}"
_stackspin_cluster_cache=/var/tmp/stackspin-cluster
@ -7,7 +12,7 @@ _stackspin_cluster_cache=/var/tmp/stackspin-cluster
# Presumes a mapping like the following in your ssh config:
# Host example.org
# Hostname [IP]
# This is a function so it can change directory
# This is a function so it can change directory.
stack() {
test $# -lt 1 &&
builtin cd "$STACKSPIN" &&

View File

@ -5,4 +5,4 @@ $XDG_CONFIG_HOME/nvim
$XDG_CONFIG_HOME/espanso
$XDG_CONFIG_HOME/zsh/completion
$CONFIG_SHELLS
$HOME/.local/bin/scripts
$HOME/.local/bin/*/

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# Find config files with fzf, preview and edit them
# Common config files are automatically checked/reloaded
alias dedup='awk '"'"'!a[$0]++'"'"

View File

@ -1,5 +0,0 @@
#!/bin/sh
# Reconnect to ONKYO since it is buggy
bluetoothctl disconnect 00:09:B0:1D:DC:98
sleep 1
bluetoothctl connect 00:09:B0:1D:DC:98

View File

@ -62,8 +62,8 @@ export CONFIG_SHELLS="$XDG_CONFIG_HOME"/shell
mkdir -p "$XDG_STATE_HOME/zsh"
# environment
BIN="$HOME/.local/bin/scripts"
export PATH="$BIN:$HOME/.local/bin:$PATH:$XDG_CONFIG_HOME/emacs/bin:$GOPATH/bin:$XDG_DATA_HOME/gem/ruby/3.0.0/bin:$ANDROID_SDK_ROOT/platform-tools:$CARGO_HOME/bin"
BIN="$HOME/.local/bin"
export PATH="$BIN/scripts:$BIN:$PATH:$XDG_CONFIG_HOME/emacs/bin:$GOPATH/bin:$XDG_DATA_HOME/gem/ruby/3.0.0/bin:$ANDROID_SDK_ROOT/platform-tools:$CARGO_HOME/bin"
export ALTERNATE_EDITOR="$(
if which nvim >/dev/null
then echo nvim
@ -71,7 +71,7 @@ export ALTERNATE_EDITOR="$(
fi)"
export EDITOR="$(
if which emacs >/dev/null
then echo $BIN/emacstty
then echo $BIN/scripts/emacstty
else echo $ALTERNATE_EDITOR
fi
)"