Skip to content

Instantly share code, notes, and snippets.

@dustinlacewell-wk
Created October 16, 2017 23:55
Show Gist options
  • Save dustinlacewell-wk/90ce034932ce5275e5a9e15eeea2274e to your computer and use it in GitHub Desktop.
Save dustinlacewell-wk/90ce034932ce5275e5a9e15eeea2274e to your computer and use it in GitHub Desktop.
{ pkgs, ... }:
{
home.packages = [
pkgs.aws
pkgs.fasd
pkgs.httpie
pkgs.nano
pkgs.tig
];
programs.zsh = {
enable = true;
dotDir = ".config/zsh";
enableAutosuggestions = true;
enableCompletion = true;
history.size = 100000;
sessionVariables = {
EDITOR="nano";
PATH="$HOME/bin:$PATH";
};
oh-my-zsh = {
enable = true;
theme = "agnoster";
plugins = [
"aws"
"common-aliases"
"docker"
"fasd"
"git"
"httpie"
"shink-path"
"tig"
];
};
shellAliases = {
j = ''z'';
# auto create parent directories
mkdir = ''mkdir -pv'';
# docker aliases
dps = ''docker ps'';
drm = ''docker rm -f $(docker ps -aq)'';
drmi = ''docker rmi $(docker images | grep "<none>" | awk "{print $3}")'';
};
initExtra = ''
## Main prompt
build_prompt() {
RETVAL=$?
prompt_status
prompt_virtualenv
prompt_dir
prompt_git
prompt_bzr
prompt_hg
prompt_end
}
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
setopt prompt_subst
'';
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment