Skip to content

Commit

Permalink
[fix][config] fix terminfo path for smartos. add nice bash options.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Apr 6, 2014
1 parent 7ea8385 commit a5e1f87
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions base/smartos-base/files/env
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

# smartos uses /usr/share/lib/terminfo, but doesn't point to it properly.
# this sets terminfo_dirs to the two most common locations.
# export TERMINFO=/usr/share/lib/terminfo
export TERMINFO_DIRS=/usr/share/terminfo:/usr/share/lib/terminfo

# use vi mode (like a sane person)
set -o vi

# aliases
alias ls='ls -ahF --group-directories-first --color=auto'
alias ll='ls -lahF --group-directories-first --color=auto'

# cycle through completions with tab
bind '"\t": menu-complete'
# shift+tab to cycle back
bind '"\e[Z": menu-complete-backward'
3 changes: 3 additions & 0 deletions base/smartos-base/scripts/install.sh
Expand Up @@ -6,4 +6,7 @@ pkgin -y install scmgit python27 gcc-compiler gmake openssl
cp ../files/limits $HOME/.limits
grep '. .limits' $HOME/.bashrc || echo '. .limits' >> $HOME/.bashrc

cp ../files/env $HOME/.env
grep '. .env' $HOME/.bashrc || echo '. .env' >> $HOME/.bashrc

hash -r

0 comments on commit a5e1f87

Please sign in to comment.