Commit Graph

17 Commits (8f9698bf75ff0f55f112f74ad56f878ea3b564d1)

Author SHA1 Message Date
nirenjan a35fd2cea0 Split prompt into two lines
Prior to this change, we were setting PS1 manually and having to muck
with the \[, \] pairs for terminal escapes was proving to be too much.
Instead, we moved to using a function used in PROMPT_COMMAND which
displays the user, hostname and directory on one line, followed by the
actual prompt line which displays the git status.
2018-09-27 14:50:21 -07:00
nirenjan 46214fd02f Add GPG agent configuration
This change forces the SSH agent to use the GPG agent for the
authorization keys. This is used in order to use a smartcard as the
identity for SSH authentication.
2018-09-27 13:58:45 -07:00
nirenjan 89a016625d Move tmux alias after work alias
The old order was causing tmux to be called with the TERM environment
variable twice, along with the -2 -u arguments being repeated.
2016-10-03 12:12:47 -07:00
nirenjan aadc695adc Use standard name for dircolors file 2015-10-25 10:22:44 -07:00
nirenjan a5071c6285 Move Bash startup files to separate folder
Make it easier to add new configuration to Bash by adding a .bash file
to ~/.bashrc.d/. This file will be executed on startup.
2015-04-18 19:53:11 -07:00
nirenjan 64ee88e277 Revert to using 256color mode
It turns out that when tmux was launched with the TERM set to xterm, it
was causing tmux colors to go out of whack. This imports the original
setting from my previous environment which sets the tmux alias to launch
with the TERM set to screen-256color-bce
2015-02-27 10:43:48 -08:00
nirenjan 228b93ad13 Move tmux aliases into shared config
Instead of spending all my time trying to configure the terminal and
shell, I added these aliases here, so they get propagated to all
systems.
2015-02-26 17:47:37 -08:00
nirenjan 5150fa0893 Add Unicode switch to launch tmux from alias 2014-03-18 22:04:23 -07:00
nirenjan 81c44dec83 Add aliases for commonly used applications 2013-07-09 18:54:26 -07:00
nirenjan f77b4eeb77 Fix prompt for commands over SSH
When executing commands over SSH, such as SCP, the server (tput)
complains that there is no terminal defined. This fix sets the T_*
variables only if the TERM variable is not empty.
2013-06-18 11:36:50 -07:00
nirenjan dff9c41948 Add bash aliases 2013-05-20 22:41:56 -07:00
nirenjan cf2cd69b13 Fix PS1 in bash
Without \[ \] wrapping, bash was getting confused where the cursor actually
was. This fixes that problem.
2013-05-08 23:30:36 -07:00
nirenjan 48e6e5edcc Fix smartwd script and update PS1 in bashrc.common 2013-02-14 14:11:12 -08:00
nirenjan 0b01047612 Disable vi mode in bash - too many problems 2013-02-11 16:06:48 -08:00
nirenjan 1b8e435dc4 Set vi mode in bashrc.common 2013-01-31 18:36:33 -08:00
nirenjan 5e4648a49e Tweak bashrc.common
Add a function add_to_path so that it can prepend any specified path
to the PATH environment variable, but only if it is not already there.

Don't worry about (re)setting the LS_COLORS environment if it's already
been set by the system bashrc.
2013-01-30 10:27:39 -08:00
nirenjan 13fae1e870 Move bashrc files to their own folder 2013-01-25 09:31:23 -08:00