Files
dotfiles/config/zsh/aliases
Uttarayan Mondal 943cf49146 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
2021-04-13 01:29:14 +05:30

37 lines
978 B
Plaintext

alias ll='exa -al'
alias arduino-cli='arduino-cli --config-file $XDG_CONFIG_HOME/arduino15/arduino-cli.yaml'
alias gdb='gdb -nh -x "$XDG_CONFIG_HOME"/gdb/init'
alias nv=nvim
alias v=nvim
alias m=neomutt
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)
if ! [ -z "$page" ];then
echo $page | nvim -R -c 'set ft=man nomod nolist' -
fi
}