yadm-config/.bashrc
2025-01-01 18:08:34 +01:00

22 lines
560 B
Bash

#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
export VISUAL='nvim'
export EDITOR="$VISUAL"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias vim='nvim'
alias note='(cd ~/Notes/ && NVIM_APPNAME=nvim-notes nvim ~/Notes/)'
alias note-diary='(cd ~/Notes/ && NVIM_APPNAME=nvim-notes nvim ~/Notes/Diary.md)'
alias note-dsa='(cd ~/DSA/ && NVIM_APPNAME=nvim-notes nvim ~/DSA/)'
PS1='[\u@\h \W]\$ '
eval "$(zoxide init bash --cmd cd)"
eval "$(fzf --bash)"
alias doch='sudo "$BASH" -c "$(history -p !!)"'