mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
refactoring
This commit is contained in:
parent
53b18ca0db
commit
f699a87614
24 changed files with 67 additions and 57 deletions
14
shell/aliases
Normal file
14
shell/aliases
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
## .aliases
|
||||
|
||||
case "$(uname)" in
|
||||
"Darwin")
|
||||
alias top="top -o cpu -s 5"
|
||||
;;
|
||||
"Linux")
|
||||
alias ls="ls --color"
|
||||
;;
|
||||
esac
|
||||
|
||||
alias ll="ls -l"
|
||||
alias tree="tree -C"
|
||||
|
||||
4
shell/colors
Normal file
4
shell/colors
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# add some color
|
||||
GREP_OPTIONS='--color=auto'
|
||||
CLICOLOR=1;
|
||||
export GREP_OPTIONS CLICOLOR
|
||||
5
shell/editor
Normal file
5
shell/editor
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
# default editor
|
||||
EDITOR=vim
|
||||
VISUAL=vim
|
||||
export EDITOR VISUAL
|
||||
12
shell/homebrew
Normal file
12
shell/homebrew
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# local path
|
||||
PATH=/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
# node.js path
|
||||
NODE_PATH=/usr/local/lib/node
|
||||
export NODE_PATH
|
||||
|
||||
# python
|
||||
test -d /usr/local/share/python3 && PATH="/usr/local/share/python3:$PATH"
|
||||
test -d /usr/local/share/python && PATH="/usr/local/share/python:$PATH"
|
||||
|
||||
export PATH
|
||||
3
shell/osx
Normal file
3
shell/osx
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# OS X python user path
|
||||
PATH=~/Library/Python/2.7/bin:$PATH
|
||||
export PATH
|
||||
4
shell/rbenv
Normal file
4
shell/rbenv
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# rbenv
|
||||
test -d "$HOME/.rbenv/bin" && PATH="$HOME/.rbenv/bin:$PATH"
|
||||
which rbenv 2>&1 >/dev/null && eval "$(rbenv init -)"
|
||||
export PATH
|
||||
6
shell/ssh
Normal file
6
shell/ssh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ssh keychain, if no agent set
|
||||
if [ -z "$SSH_AUTH_SOCK" ]; then
|
||||
if which keychain 2>&1 >/dev/null; then
|
||||
eval $(keychain --eval --agents ssh -Q --quiet id_rsa)
|
||||
fi
|
||||
fi
|
||||
3
shell/user
Normal file
3
shell/user
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# user path
|
||||
PATH=~/.local/bin:$PATH
|
||||
export PATH
|
||||
Loading…
Add table
Add a link
Reference in a new issue