Compare commits
2 Commits
8f25c3c57b
...
70dd1ee423
Author | SHA1 | Date |
---|---|---|
fanyx | 70dd1ee423 | |
fanyx | a1b8c0429e |
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec 2&>1
|
||||
exec 2>&1
|
||||
exec /usr/bin/syncthing -logflags 0 -no-restart -home="$HOME/.config/syncthing"
|
||||
|
|
|
@ -1,28 +1,27 @@
|
|||
: ${XDG_CACHE_HOME:=$HOME/.cache}
|
||||
: ${XDG_CONFIG_HOME:=$HOME/.config}
|
||||
: ${XDG_DATA_HOME:=$HOME/.data}
|
||||
: ${XDG_RUNTIME_DIR:=/run/user/$(id -u)}
|
||||
export XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR
|
||||
[ -n "$BASH_VERSION" ] && [ -f $HOME/.bashrc ] && . $HOME/.bashrc
|
||||
|
||||
# : ${DBUS_SESSION_BUS_ADDRESS:=$XDG_RUNTIME_DIR/bus}
|
||||
# export DBUS_SESSION_BUS_ADDRESS
|
||||
export XDG_CACHE_HOME=$HOME/.cache
|
||||
export XDG_CONFIG_HOME=$HOME/.config
|
||||
export XDG_DATA_HOME=$HOME/.data
|
||||
|
||||
: ${BROWSER:=firefox}
|
||||
: ${EDITOR:=vim}
|
||||
: ${PAGER:=less}
|
||||
: ${VISUAL:=vim}
|
||||
export BROWSER EDITOR PAGER VISUAL
|
||||
export BROWSER=firefox
|
||||
export EDITOR=vim
|
||||
export PAGER=less
|
||||
export VISUAL=vim
|
||||
|
||||
for x in \
|
||||
"/usr/bin" \
|
||||
"/usr/local/bin" \
|
||||
"$HOME/bin" \
|
||||
"$HOME/.local/bin" \
|
||||
"/usr/local/sbin" \
|
||||
"/usr/local/bin" \
|
||||
"/usr/sbin" \
|
||||
"/usr/bin" \
|
||||
"/sbin" \
|
||||
"/bin" \
|
||||
; do
|
||||
[ -d "$x" ] || continue
|
||||
case ":${PATH}:" in
|
||||
*":${x}:"*) ;;
|
||||
*) PATH="${PATH+${PATH}:}${x}" ;;
|
||||
*) PATH="${PATH:+$PATH:}${x}" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue