Created
October 16, 2017 23:55
-
-
Save dustinlacewell-wk/90ce034932ce5275e5a9e15eeea2274e to your computer and use it in GitHub Desktop.
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
{ 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