Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix][config] fix terminfo path for smartos. add nice bash options.
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters