diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-11-05 12:13:43 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-11-05 12:13:43 +0300 |
commit | 7e14b70a3c37e33d65a879f53b44a6d8d233137b (patch) | |
tree | 17aa7d24ad8856bea0389f59e768735873ae8438 /%HOME% | |
parent | update_ruby_settings: code style (diff) | |
download | linux-home-7e14b70a3c37e33d65a879f53b44a6d8d233137b.tar.gz linux-home-7e14b70a3c37e33d65a879f53b44a6d8d233137b.zip |
bugfix & code style
Diffstat (limited to '%HOME%')
-rw-r--r-- | %HOME%/.bash_profile | 4 | ||||
-rw-r--r-- | %HOME%/.bashrc | 10 | ||||
-rw-r--r-- | %HOME%/.gitconfig | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/%HOME%/.bash_profile b/%HOME%/.bash_profile index 38b23f3..91b1d50 100644 --- a/%HOME%/.bash_profile +++ b/%HOME%/.bash_profile @@ -5,9 +5,9 @@ echo "Welcome to $( hostname )" spawn_ssh_agent() { [ -n "${SSH_AGENT_PID:+x}" ] && return 0 - command -v ssh-agent &> /dev/null \ + command -v ssh-agent &> /dev/null \ && eval "$( ssh-agent -s )" > /dev/null \ - && [ -n "${SSH_AGENT_PID:+x}" ] \ + && [ -n "${SSH_AGENT_PID:+x}" ] \ && trap "$( printf 'kill %q' "$SSH_AGENT_PID" )" 0 } diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc index dbaae9b..24b6618 100644 --- a/%HOME%/.bashrc +++ b/%HOME%/.bashrc @@ -42,11 +42,11 @@ update_ruby_settings() { local user_dir local bin_dir - command -v ruby &> /dev/null \ - && command -v gem &> /dev/null \ - && user_dir="$( ruby -e 'print Gem.user_dir' )" \ - && export GEM_HOME="$user_dir" \ - && bin_dir="$( ruby -e 'puts Gem.bindir' )" \ + command -v ruby &> /dev/null \ + && command -v gem &> /dev/null \ + && user_dir="$( ruby -e 'puts Gem.user_dir' )" \ + && export GEM_HOME="$user_dir" \ + && bin_dir="$( ruby -e 'puts Gem.bindir' )" \ && add_path "$bin_dir" } diff --git a/%HOME%/.gitconfig b/%HOME%/.gitconfig index 367c3f4..7ca7afd 100644 --- a/%HOME%/.gitconfig +++ b/%HOME%/.gitconfig @@ -26,6 +26,6 @@ clean-unknown = clean -fd l = log --oneline wdiff = diff --word-diff - xx = update-index --chmod=+x + xx = update-index --add --chmod=+x [fetch] prune = true |