mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
fix quotes
This commit is contained in:
parent
58ac67c492
commit
27d0185cf1
3 changed files with 9 additions and 10 deletions
|
@ -3,17 +3,17 @@
|
||||||
export LANG="en_US.UTF-8"
|
export LANG="en_US.UTF-8"
|
||||||
export LC_ALL="$LANG"
|
export LC_ALL="$LANG"
|
||||||
|
|
||||||
if [[ -z $USER && -n $USERNAME ]]; then
|
if [[ -z "$USER" && -n "$USERNAME" ]]; then
|
||||||
export USER="$USERNAME"
|
export USER="$USERNAME"
|
||||||
fi
|
fi
|
||||||
export DEFAULT_USER=dmitmel
|
export DEFAULT_USER="dmitmel"
|
||||||
|
|
||||||
if [[ -n $SSH_CONNECTION ]]; then
|
if [[ -n "$SSH_CONNECTION" ]]; then
|
||||||
export EDITOR="rmate"
|
export EDITOR="rmate"
|
||||||
else
|
else
|
||||||
export EDITOR="code --wait"
|
export EDITOR="code --wait"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export CLICOLOR=1
|
export CLICOLOR="1"
|
||||||
|
|
||||||
export SDKMAN_DIR="$HOME/.sdkman"
|
export SDKMAN_DIR="$HOME/.sdkman"
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
is_linux() {
|
is_linux() {
|
||||||
[[ $OSTYPE == linux* ]]
|
[[ "$OSTYPE" == linux* ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
is_macos() {
|
is_macos() {
|
||||||
[[ $OSTYPE == darwin* ]]
|
[[ "$OSTYPE" == darwin* ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
command_exists() {
|
command_exists() {
|
||||||
|
@ -13,7 +13,7 @@ command_exists() {
|
||||||
}
|
}
|
||||||
|
|
||||||
source_if_exists() {
|
source_if_exists() {
|
||||||
[[ -f $1 ]] && source "$1"
|
[[ -f "$1" ]] && source "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
run_before() {
|
run_before() {
|
||||||
|
|
5
zshrc
5
zshrc
|
@ -8,9 +8,8 @@ find_dotfiles_dir() {
|
||||||
[[ -d "$DOTFILES_DIR" ]] && return
|
[[ -d "$DOTFILES_DIR" ]] && return
|
||||||
done
|
done
|
||||||
|
|
||||||
local script_path
|
local script_path="$(realpath "${(%):-%x}")"
|
||||||
script_path=$(realpath "${(%):-%x}")
|
DOTFILES_DIR="$(dirname "$script_path")"
|
||||||
DOTFILES_DIR=$(dirname "$script_path")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
find_dotfiles_dir
|
find_dotfiles_dir
|
||||||
|
|
Loading…
Reference in a new issue