Commit Graph

223 Commits (master)

Author SHA1 Message Date
nirenjan f7c49698af fix: Update stardate script to be compatible with Python 3 2024-10-02 10:22:33 -07:00
nirenjan acf0c8a78c
Fix tmux config to use new syntax 2024-05-31 11:36:47 -07:00
nirenjan b81729746a Use bold colors
Modern terminals now support using bold with the base color
instead of bright colors.
2023-06-05 09:15:30 -07:00
nirenjan 45044ab177 Add command_not_found completion to zsh 2023-06-05 08:55:47 -07:00
nirenjan c6f1885ba6 Use https instead of git to access Github
Github has disabled access via the unauthenticated git:// protocol.
2022-03-25 08:41:10 -07:00
nirenjan 4497e4e3b1 Use command -v to check for presence of a command
With a fresh install of zsh on OSX Catalina, the which command returns
text in stdout even if there is no corresponding command. Replacing it
with `command -v` ensures that the test does not give a false positive.
2020-09-09 07:50:13 -07:00
nirenjan a866ab7d4e Wrap gpg snippet to ensure that the command is available 2020-09-09 07:49:26 -07:00
nirenjan 9da5e26220 Get SSH_AUTH_SOCK from gpgconf
Older versions of GPG don't support the `agent-ssh-socket` option, so we
will have to work around this.
2020-04-12 16:57:52 -07:00
nirenjan b5fc74d501 Add script to get latest Hugo release for Linux 2019-08-14 10:49:28 -07:00
nirenjan 6fd68fce42 Add script to fix SSH connectivity with gpg-agent 2019-04-24 13:23:04 -07:00
nirenjan b712bc45dd Add virtualenv to prompt, if it exists
With my starting to get deeper into Python development, I noticed an
issue with the virtualenv, where the current virtualenv was not set on
activation. I traced this to the fact that PS1 is always reset in the
prompt_header function, therefore, I need to add the virtual environment
details into prompt_header

This change checks if the virtual environment is set, if so, it adds the
current virtual environment to the prompt in magenta color.
2019-02-25 20:55:07 -08:00
nirenjan 6f89117689 Add script to query pwned password database 2019-01-17 14:16:46 -08:00
nirenjan 63656f9fc2 Always (re)set LS_COLORS
Prior to this change, if I changed the dircolors configuration and
restarted the shell, it wouldn't reflect in the new shell because of the
check. I'd have to create a new terminal window to get the new colors.

This change eliminates the check for a set LS_COLORS variable and always
calls dircolors.
2018-11-12 21:16:57 -08:00
nirenjan 5acbda2aeb Move alias for ls into lscolors.zsh
Having the ls alias default to `ls --color=auto` caused it to break on
OSX, since the version of ls that ships with OSX doesn't support the
`--color` option.

This change moves the alias into lscolors, since we already have a check
for OSX vs non-OSX (in my case, Linux). This allows the alias to work as
expected on Linux, while the environment variable LSCOLORS provides the
coloring option on OSX.
2018-10-23 22:21:19 -07:00
nirenjan 1c412ee7a2 Remove utf8 lines from tmux configuration
This is no longer needed, as per https://github.com/tmux/tmux/issues/230
2018-10-23 22:17:35 -07:00
nirenjan b9afaea34d Add true-color override to default-terminal
This change enables True Color in tmux, without having to patch the
terminfo database.
2018-10-23 15:56:53 -07:00
nirenjan 8f9698bf75 Add Zsh config files
Prior to this change, I was using Bash as the default shell, but I have
now started using Zsh, which has more features.

This change adds the zshrc and related plugin files to source control
and installs them along with the bashrc files. This also updates tmux to
use zsh as the default shell and command.
2018-10-19 15:45:51 -07:00
nirenjan a26638a886 Enable default mouse option in tmux
Prior to this change, I was using older versions of tmux. However, with
recent changes, I have got access to at least tmux version 2.0, which
removes the old mouse-* options and replaces them with a single `mouse`
option.

This change removes the settings for the old mouse-* options and
replaces them with the single mouse option.
2018-10-11 13:38:18 -07:00
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 09b20d3a0a Update smartwd to be compatible with Python 3
Prior to this change, running smartwd in a virtualenv with Python 3 gave
a syntax error due to the script treating `print` as a keyword, rather
than a function.

This change fixes the print to work as a function, and also cleans up
some of the comments and code to better comply with PEP8
2018-09-27 13:48:57 -07:00
nirenjan 65fb291da3 Add Git commit template
This configures Git to use a standard commit template, in order to make
it easier to write better commit messages.

This commit adds a default template, and configures Git to use it as the
default. It also modifies the install script to install the default
template at ~/.git-commit-template. Finally, this adds an extra check to
reapply the committed Git configuration to the global Git config.
2018-09-05 15:01:26 -07:00
nirenjan d2f9c5cdc7 Add simulation of hub clone
I don't want to get a full hub install, not yet anyway.
2018-05-03 14:09:28 -07:00
nirenjan 50d31b6c7e Add script to update GitHub remotes to use the URL aliases 2018-05-03 13:49:24 -07:00
nirenjan 7e4b71c044 Add 'scripts/' from commit '0e3760e65e20817dab6c03efee9ef545c80eed69'
git-subtree-dir: scripts
git-subtree-mainline: 2c08462a0f
git-subtree-split: 0e3760e65e
2018-04-28 10:19:41 -07:00
nirenjan 2c08462a0f Remove submodules - replace with subtree 2018-04-28 10:19:28 -07:00
nirenjan f9c4879b74 Add default tmux terminal to dircolors 2018-04-27 15:17:30 -07:00
nirenjan b0d1e83e88 Install git config before initializing submodules 2018-04-26 22:25:34 -07:00
nirenjan 172633dd5f Add URL aliases in gitconfig 2018-04-26 22:20:37 -07:00
nirenjan 0e3760e65e Add newsh script 2016-10-03 13:03:29 -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 cdfe4b49cc Add git alias for short status 2016-10-03 12:10:55 -07:00
nirenjan 543cb025ef Update scripts to use new python smartwd 2016-03-26 13:18:36 -07:00
nirenjan a1dbe3c5d0 Replace smartwd with python equivalent 2016-03-26 13:17:11 -07:00
nirenjan be914d0f33 Remove beep script from installation 2015-12-29 21:26:36 -08:00
nirenjan aadc695adc Use standard name for dircolors file 2015-10-25 10:22:44 -07:00
nirenjan 213924ce37 Update scripts submodule 2015-06-26 15:00:13 -07:00
nirenjan dd6a3182f8 mkcscope: Add option to create a blank config file 2015-06-26 14:59:41 -07:00
nirenjan 3cbf9d40cf Add padding to tmux status-left
This fixes the formatting issue in tmux 2.0.
2015-06-26 14:45:16 -07:00
nirenjan 0081ee9d81 Update scripts submodule 2015-06-26 14:45:10 -07:00
nirenjan 1245674adc Add mkcscope script 2015-06-26 14:40:35 -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 6aa4ac66b4 Remove unused scripts from installer 2015-04-13 14:15:18 -07:00
nirenjan 516777e446 Fix comment 2015-03-10 11:00:38 -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 01434fff9d Fix Git username and email setting on a new install 2015-02-26 17:54:11 -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 57a8dba6ba Make tmux use xterm-16color
xterm-256color has issues with solarized in Vim
2015-02-25 18:11:52 -08:00
nirenjan e333aac538 Update scripts submodule 2015-02-25 12:09:49 -08:00
nirenjan 5ff851cb6d Fix beep script to use bash instead of sh 2015-02-25 12:08:14 -08:00