forked from colonelpanic/dotfiles
Delete emacs app for now.
This commit is contained in:
12
dotfiles/lib/git-ssh.sh
Executable file
12
dotfiles/lib/git-ssh.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# If parent command is "npm ...", then redirect stderr to /dev/null
|
||||
# https://github.com/npm/npm/issues/7979#issuecomment-94953923
|
||||
|
||||
GRANDPARENT_PID=$(ps -p $PPID -o ppid=)
|
||||
|
||||
if ps -p $GRANDPARENT_PID -o command= | grep -q -P "^npm"; then
|
||||
ssh "$@" 2>/dev/null
|
||||
else
|
||||
ssh "$@"
|
||||
fi
|
@@ -59,3 +59,6 @@ export RBENV_ROOT=/usr/local/var/rbenv
|
||||
export PATH="$HOME/.rbenv/bin:$PATH"
|
||||
hash rbenv 2> /dev/null && eval "$(rbenv init -)"
|
||||
test -e /usr/libexec/path_helper && eval `/usr/libexec/path_helper -s`
|
||||
|
||||
|
||||
export NODE_PATH="/usr/local/lib/node_modules/"
|
||||
|
@@ -1,6 +1,7 @@
|
||||
# added by newengsetup
|
||||
export UBER_HOME="$HOME/Uber"
|
||||
export UBER_OWNER="imalison@uber.com"
|
||||
[ -z "$GIT_SSH" ] || export GIT_SSH="$HOME/.lib/git-ssh.sh"
|
||||
export VAGRANT_DEFAULT_PROVIDER=aws
|
||||
[ -s "/usr/local/bin/virtualenvwrapper.sh" ] && . /usr/local/bin/virtualenvwrapper.sh
|
||||
[ -s "$HOME/.nvm/nvm.sh" ] && . $HOME/.nvm/nvm.sh
|
||||
|
@@ -4,6 +4,8 @@ elif infocmp xterm-256color >/dev/null 2>&1; then
|
||||
export TERM=xterm-256color
|
||||
fi
|
||||
|
||||
export HISTTIMEFORMAT='%F %T '
|
||||
|
||||
export PAGER='less -XFr'
|
||||
export GITPAGER='less -XFr'
|
||||
|
||||
|
Reference in New Issue
Block a user