Skip to content

Commit

Permalink
fix scp troubles
Browse files Browse the repository at this point in the history
  • Loading branch information
massemanet committed Apr 6, 2018
1 parent d7642a2 commit 49d63d9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions .bash_profile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# shellcheck source=.profile
. ~/.profile
. ~/.bashrc
2 changes: 2 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
# macos/homebrew style

[ -t 0 ] || exit 0

# clean up
unalias -a

Expand Down
14 changes: 5 additions & 9 deletions .profile
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
#!/bin/bash
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile exists.

# go is a special snowflake
export GOROOT=/usr/local/opt/go/libexec
export GOPATH=~/go

# one path to rule them all
function add_to_path() {
[ -d "$1" ] && export PATH="$1":$PATH
}
add_to_path $GOPATH/bin
add_to_path $GOROOT/bin
add_to_path /opt/bin
add_to_path $(brew --prefix coreutils)/libexec/gnubin
add_to_path $(brew --prefix)/bin
add_to_path "$(brew --prefix coreutils)/libexec/gnubin"
add_to_path "$(brew --prefix)/bin"
add_to_path ~/bin

# one locale to rule them all
unset LC_ALL
unset LANGUAGE
unset LC_CTYPE
export LANG=`locale -a | grep -Ei "en.us.utf"`
LANG="$(locale -a | grep -Ei "en.us.utf")"
export LANG

0 comments on commit 49d63d9

Please sign in to comment.