Browse Source

added .zshrc to dotfiles and included it in the setup script

bananicorn 5 years ago
parent
commit
0b43ca5a75
2 changed files with 39 additions and 1 deletions
  1. 37 0
      .zshrc
  2. 2 1
      setup.sh

+ 37 - 0
.zshrc

@@ -0,0 +1,37 @@
+set -o vi
+setopt prompt_subst # needs to be on so I can get the time updated on each recalculation of the prompt
+setopt cdablevars # be able to cd to strings contained in variables
+setopt histignorespace # if a command starts with a space, it is not added to the history
+setopt ignoreeof # do not exit with Ctrl-D
+setopt autopushd pushdminus pushdsilent pushdtohome # 
+
+# escaped color codes
+TURQUOISE=""
+GREEN=""
+WHITE=""
+RED="" # I'd prefer a lighter shade of red, but whatever
+
+# functions
+get_git_branch() {
+	git branch --list 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/ ($RED\1$WHITE)/"
+}
+
+PS1='[$GREEN${$(date -d now +'%H:%M:%S')}$WHITE] ${PWD##}${$(get_git_branch)} $ '
+
+
+alias c=clear
+alias q=exit
+alias d="dirs -v"
+alias dup="st & disown"
+alias ls="ls --color"
+alias la="ls -la --color"
+alias lah="ls -lah --color"
+alias grep="grep --color"
+
+export torgglercom="~/suticlients/torgglercom/web/app/theme/chimica"
+
+#Stuff for work
+
+#Node version management
+export NVM_DIR="$HOME/.nvm"
+[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

+ 2 - 1
setup.sh

@@ -1,8 +1,9 @@
 #!/bin/bash
 ln -s ~/dotfiles/.bashrc ~/.bashrc
+ln -s ~/dotfiles/.zshrc ~/.zshrc
+ln -s ~/dotfiles/.fishrc ~/.fishrc
 ln -s ~/dotfiles/.bash_profile ~/.bash_profile
 ln -s ~/dotfiles/.profile ~/.profile
-ln -s ~/dotfiles/.fishrc ~/.fishrc
 ln -s ~/dotfiles/.xinitrc ~/.xinitrc
 ./setup-vim.sh