fixed .profile & install script
This commit is contained in:
parent
de1a55d789
commit
51f4ef09e5
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
if test -z "$1"; then
|
if test -z "$1"; then
|
||||||
printf "Usage: %s machine\n" "$0" 1>&2
|
printf "Usage: %s machine\n" "$0" 1>&2
|
||||||
exit 64 # sysexits(3) EX_USAGE
|
exit 64 # sysexits.h(3) EX_USAGE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
@ -114,9 +114,9 @@ case "$SHELL" in
|
|||||||
/bin/sh || */dash )
|
/bin/sh || */dash )
|
||||||
set -o vi
|
set -o vi
|
||||||
PS1='$ '
|
PS1='$ '
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*/zsh )
|
*/zsh )
|
||||||
HISTFILE="$XDG_DATA_HOME/zsh/histfile"
|
HISTFILE="$XDG_DATA_HOME/zsh/histfile"
|
||||||
HISTSIZE=999999999
|
HISTSIZE=999999999
|
||||||
SAVEHIST="$HISTSIZE"
|
SAVEHIST="$HISTSIZE"
|
||||||
@ -152,13 +152,13 @@ case "$SHELL" in
|
|||||||
PS1="$(printf "%s\n%s\n%s" "$LINE1" "$LINE2" "$LINE3")"; export PS1
|
PS1="$(printf "%s\n%s\n%s" "$LINE1" "$LINE2" "$LINE3")"; export PS1
|
||||||
|
|
||||||
plugindir="/usr/share/zsh/plugins"
|
plugindir="/usr/share/zsh/plugins"
|
||||||
for plugin in \
|
for plugin in \
|
||||||
"$plugindir/zsh-autosuggestions/zsh-autosuggestions.zsh" \
|
"$plugindir/zsh-autosuggestions/zsh-autosuggestions.zsh" \
|
||||||
"$plugindir/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh" \
|
"$plugindir/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh" \
|
||||||
"$plugindir/zsh-history-substring-search/zsh-history-substring-search.zsh"
|
"$plugindir/zsh-history-substring-search/zsh-history-substring-search.zsh"
|
||||||
do
|
do
|
||||||
source "$plugin"
|
source "$plugin"
|
||||||
done
|
done
|
||||||
|
|
||||||
bindkey -a 'k' history-substring-search-up
|
bindkey -a 'k' history-substring-search-up
|
||||||
bindkey -a 'j' history-substring-search-down
|
bindkey -a 'j' history-substring-search-down
|
||||||
|
Loading…
Reference in New Issue
Block a user