Cleanup... for now

This commit is contained in:
Andrea Mistrali 2021-10-28 10:46:27 +02:00
parent 7023dd4906
commit 1487224aaa
No known key found for this signature in database
GPG Key ID: 6FB0A77F6D5DA9B2
4 changed files with 2 additions and 58 deletions

View File

@ -9,23 +9,15 @@ autoload -z edit-command-line
zle -N edit-command-line
bindkey "^X^E" edit-command-line
# Standard Linux
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
bindkey "^S" kill-line
bindkey "^U" backward-kill-line
# Useful under iTerm
bindkey "-e"
bindkey "\eOH" beginning-of-line
bindkey "\eOF" end-of-line
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
bindkey "\e[3~" delete-char
bindkey "\eOA" history-search-backward
bindkey "\eOB" history-search-forward
bindkey "\e[A" history-search-backward
bindkey "\e[B" history-search-forward
# vim: set ts=4 sw=4 tw=0 ft=zsh :

View File

@ -1,29 +0,0 @@
function venv {
# export WORKON_HOME=$HOME/Src/virtualenvs
# export PROJECT_HOME=$HOME/Src/projects
if [ -z $WORKON_HOME ] || [ -z $PROJECT_HOME ]; then
echo "Please, set WORKON_HOME and PROJECT_HOME first."
echo "Better place to set them is 99-local.zsh"
return
fi
[ -z $VIRTUALENV_SCRIPT ] && VIRTUALENV_SCRIPT=/usr/local/bin/virtualenvwrapper.sh
[ -d $WORKON_HOME ] || mkdir -p $WORKON_HOME
[ -d $PROJECT_HOME ] || mkdir -p $PROJECT_HOME
source $VIRTUALENV_SCRIPT
if [ -z $1 ]; then
echo "virtualenv enabled."
echo "WORKON_HOME: $WORKON_HOME"
echo "PROJECT_HOME: $PROJECT_HOME"
echo
echo "Virtualenvs:"
lsvirtualenv -b
echo
else
workon $1
fi
}

View File

@ -1,19 +0,0 @@
# Core Utils
which gcp > /dev/null
if [ $? -eq 0 ]; then
if [ -f /etc/zsh/gdircolors ]; then
eval `gdircolors /etc/zsh/gdircolors`
else
eval `gdircolors`
fi
#alias ls='gls --color -F' # OSX ls is better (supports extended attributes)
alias ll='ls -l'
alias la='ls -a'
alias cp='gcp'
alias mv='gmv'
alias rm='grm'
alias du='gdu'
alias df='gdf -a'
fi
# vim: set ts=4 sw=4 tw=0 ft=zsh :