Switched from zsh to fish
Add neomutt config Add mpd config Update bspwm config Update sxhkd config Update qutebrowser config Update tmux config Update xinitrc
This commit is contained in:
@@ -8,6 +8,25 @@ alias n=notmuch
|
||||
alias dotfiles='/usr/bin/git --git-dir=$XDG_DATA_HOME/dotfiles/ --work-tree=$HOME'
|
||||
alias yarn="yarn --use-yarnrc $XDG_CONFIG_HOME/yarn/yarnrc"
|
||||
|
||||
function z() {
|
||||
builtin cd "$@"
|
||||
|
||||
if [[ -z "$VIRTUAL_ENV" ]] ; then
|
||||
## If env folder is found then activate the vitualenv
|
||||
if [[ -d ./venv ]] ; then
|
||||
source ./venv/bin/activate
|
||||
fi
|
||||
else
|
||||
## check the current folder belong to earlier VIRTUAL_ENV folder
|
||||
# if yes then do nothing
|
||||
# else deactivate
|
||||
parentdir="$(dirname "$VIRTUAL_ENV")"
|
||||
if [[ "$PWD"/ != "$parentdir"/* ]] ; then
|
||||
deactivate
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
man() {
|
||||
page=$(/usr/bin/man "$@" | \
|
||||
col -b)
|
||||
|
||||
Reference in New Issue
Block a user