# choices
my_active_nvim="nvim"
# alias nvim='my_active_nvim'
alias vim='$my_active_nvim'
alias vi='$my_active_nvim'
#terminal="alacritty"
#TERMINAL="alacritty"
#hdd="/mnt/hdd"
note="$hdd/things-in-my-mind.txt"
quotes="/mnt/d/my-dotfiles/quotes.txt"
export MANPAGER='nvim +Man!'
export MANWIDTH=999 #so important with > export MANPAGER='nvim +Man!'
# bash prompt theming
PS1='\e[3;33m(\@)\e[m\u:\h\e[1;36m[\w]\e[m$ '
# nvim things
alias nbp='$my_active_nvim ~/.bashrc-personal'
alias npb=' $my_active_nvim ~/.bashrc-personal'
alias nb=' $my_active_nvim ~/.bashrc'
alias nv='$my_active_nvim ~/.config/nvim/init.lua'
alias nqtile='$my_active_nvim ~/.config/qtile/config.py'
alias nxmo='$my_active_nvim ~/.xmonad/xmonad.hs'
alias nhyper='$my_active_nvim ~/.config/hypr/hyprland.conf'
alias nalac='$my_active_nvim ~/.config/alacritty/alacritty.toml'
alias nkit='$my_active_nvim ~/.config/kitty/kitty.conf'
alias nsx='$my_active_nvim ~/.config/qtile/sxhkd/sxhkdrc'
alias nlv='$my_active_nvim ~/.config/lvim/config.lua'
# sourcing
alias sb='source ~/.bashrc'
# pacman & aur helpers
alias inst='sudo pacman -S'
alias isnt='sudo pacman -S'
alias pinst='paru -S'
alias yinst='yay -S'
alias search='pacman -Ss'
alias ysearch='yay -Ss'
alias psearch='paru -Ss'
# faster
alias cd..='cd ..'
alias cd.='cd ..'
alias cd~='cd ~'
alias cdc='cd ~/.config ;ls'
alias cdh='cd ~'
alias cdvb='cd /mnt/d/st/obsi/vault_bank'
alias cdcore='cd /mnt/d/core'
alias cdsol="cd /mnt/d/solve"
alias cdesk="cd /mnt/c/Users/dt/Desktop"
alias ls='ls -lah --color=auto'
alias ter='$terminal'
alias sk="nvim $hdd/things-in-my-mind.txt"
alias nnote="nvim $note"
alias file="thunar ."
alias lv="lvim"
alias xcopy="xclip -sel clip"
alias ndswap="rm ~/.local/state/nvim/swap/*" # delete swap
alias dtlog="sudo pkill -u dt"
alias fzf='fzf --preview "bat --color=always --style=numbers --line-range=:500 {}"'
alias removeneovim=""
alias camfix='sudo rmmod v4l2loopback ; sudo modprobe v4l2loopback'
alias td='termdown '
# listings of important files
alias lsalac='cd ~/.config/alacritty ; ls'
alias nvls='cd ~/.config/nvim ; ls'
alias lsqtile='cd ~/.config/qtile ; ls'
alias lsxmo='cd ~/.xmonad ; ls'
alias lshyper='cd ~/.config/hypr ; ls'
alias lssx='nvim ~/.config/qtile/sxhkd/sxhkdrc ; ls'
alias lslv='cd ~/.config/lvim ; ls'
alias lskit='cd ~/.config/kitty ; ls'
# for lunar vim
export PATH=/home/dt/.local/bin:$PATH
# for dotnet
export PATH=/home/dt/.dotnet:$PATH
# for doom
export PATH=/home/dt/.config/emacs/bin:$PATH
# autostart with bash
# cal; date
# alias h="history | cut -c 8- | sort | uniq | fzf | tr -d '\n' | xclip -selection c" # bugswriter version
alias h="history | cut -c 8- | sort | uniq | fzf | tr -d '\n' && echo"
# alias h="history | cut -c 8- | sort | uniq | fzf | tr -d '\n' | wl-copy" # wl-clipboard is huge space
alias rondo="cdcore ; \ls | shuf | head -n 1"
PATH="$PATH:/opt/nvim-linux-x86_64/bin"
function print_random_quote() {
if [ -f "$quotes" ]; then
# Get the number of lines in the file
local num_lines=$(wc -l < "$quotes")
# Generate a random line number
local random_line=$((RANDOM % num_lines + 1))
# Print the random line
sed -n "${random_line}p" "$quotes"
else
echo "quotes.txt not found in your home directory."
fi
}
# Call the function when bash starts
print_random_quote
alias now='mkdir "$(date +'%I%p-%Y-%m-%d')"'
# alias bakacmux='tmux new -s baka -d && tmux rename-window -t baka:0 "main" && tmux new-window -t baka:1 -d && tmux new-window -t baka:2 -d && tmux new-window -t baka:3 -d && tmux attach -t baka'
alias bakacmux='
tmux new-session -s baka -d; # Create session detached
tmux rename-window -t baka:0 "extra"; # Rename window 0
tmux send-keys -t baka:0 "nvim" C-m; # Run command in window 0
tmux new-window -t baka:1 -n "doc"; # Create window 1 with name
tmux send-keys -t baka:1 "nvim /mnt/d/doc.txt" C-m; # Run command in window 1
tmux new-window -t baka:2 -n "grep"; # Create window 2 with name
tmux send-keys -t baka:2 "cdvb; nvim ." C-m; # Run command in window 2
tmux new-window -t baka:3 -n "notes"; # Create window 3 with name
tmux send-keys -t baka:3 "cdesk; nvim new.txt" C-m; # Run command in window 3
tmux attach -t baka; # Attach to session
'