summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc22
1 files changed, 19 insertions, 3 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 7a7cf9f..1778f49 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -82,7 +82,7 @@ export EDITOR=nvim
export SUDO_EDITOR=$EDITOR
export LANG=en_US.UTF-8
export TERM="xterm-256color"
-export LSCOLORS="Gxfxcxdxbxegedabagacad"
+
#
# Alias
@@ -93,8 +93,24 @@ alias ls='ls --color=auto'
#
# Functions
#
-
function nixenv {
export INNIXENV="true"
- nix-shell $HOME/.shells/$1 --run zsh
+ SHELL=""
+ if [ "$#" -gt 0 ]; then
+ SHELL=$HOME/.nix-shells/$1
+ fi
+ RUN=zsh
+ if [ "$#" -gt 1 ]; then
+ RUN=$2
+ fi
+ nix-shell $SHELL --run $RUN
+}
+function gittr {
+ if [ $# -eq 0 ]
+ then
+ git push -u origin HEAD
+ return
+ fi
+ git push -u $1 HEAD
}
+