some changes
This commit is contained in:
@@ -18,7 +18,7 @@ setopt NO_HUP
|
||||
# setopt IGNORE_EOF
|
||||
# If I could disable Ctrl-s completely I would!
|
||||
setopt NO_FLOW_CONTROL
|
||||
unsetopt normstarsilent
|
||||
# unsetopt normstarsilent
|
||||
|
||||
## Keep echo "station" > station from clobbering station
|
||||
#setopt NO_CLOBBER
|
||||
@@ -35,6 +35,14 @@ setopt NUMERIC_GLOB_SORT
|
||||
setopt EXTENDED_GLOB
|
||||
# hows about arrays be awesome? (that is, frew${cool}frew has frew surrounding all the variables, not just first and last
|
||||
setopt RC_EXPAND_PARAM
|
||||
# disable running directory names
|
||||
unsetopt AUTO_CD
|
||||
|
||||
# return in functions if a command fails
|
||||
# setopt ERR_RETURN
|
||||
|
||||
|
||||
|
||||
# Who doesn't want home and end to work?
|
||||
bindkey '\e[1~' beginning-of-line
|
||||
bindkey '\e[4~' end-of-line
|
||||
@@ -42,50 +50,18 @@ bindkey '\e[4~' end-of-line
|
||||
bindkey "\eOH" beginning-of-line
|
||||
bindkey "\eOF" end-of-line
|
||||
|
||||
# disable running directory names
|
||||
unsetopt AUTO_CD
|
||||
|
||||
. ~/.zalias
|
||||
|
||||
export R="$HOME/work/google3"
|
||||
|
||||
function .g-init() {
|
||||
git init --bare $HOME/.dotgit
|
||||
.g config --local status.showUntrackedFiles no
|
||||
.g remote add origin ssh://dedi/root/.dotgit
|
||||
git config --global user.name "Your Name"
|
||||
git config --global user.email you@example.com
|
||||
.g remote add origin ssh://dedi/var/www/git.abra.me/dot.git
|
||||
}
|
||||
# export R="$HOME/work/google3"
|
||||
|
||||
|
||||
|
||||
function is_local() {
|
||||
[[ $(hostname) == "abra0.local" ]]
|
||||
}
|
||||
|
||||
function make_user() {
|
||||
if is_local; then
|
||||
echo "You're local"
|
||||
return 1
|
||||
fi
|
||||
|
||||
adduser --system --shell /bin/zsh --disabled-password $1 || return 1
|
||||
|
||||
wget abra.me/.dotfiles.tar.gz -O /home/$1/.dotfiles.tar.gz
|
||||
tar xf /home/$1/.dotfiles.tar.gz -C /home/$1
|
||||
chown $1:nogroup -R /home/$1/
|
||||
}
|
||||
|
||||
function latest() {
|
||||
echo -n ("${(@f)$(ls *(om[1,$1]))}")
|
||||
}
|
||||
|
||||
# ----------------------------------- END ALIASES --------------------------------------------------
|
||||
export EDITOR=/usr/bin/vim
|
||||
# export EDITOR=/usr/bin/vim
|
||||
export PATH=$HOME/brew/sbin:$HOME/brew/bin:$HOME/bin:$PATH
|
||||
export DYLD_LIBRARY_PATH="/Developer/NVIDIA/CUDA-8.0/lib:/usr/local/cuda/lib"
|
||||
|
||||
# added by travis gem
|
||||
[ -f /Users/abra/.travis/travis.sh ] && source /Users/abra/.travis/travis.sh
|
||||
# [ -f /Users/abra/.travis/travis.sh ] && source /Users/abra/.travis/travis.sh
|
||||
|
||||
|
Reference in New Issue
Block a user