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:
Uttarayan Mondal
2021-04-13 01:29:14 +05:30
parent c83a41fad6
commit 943cf49146
35 changed files with 749 additions and 42 deletions

View File

@@ -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)