.bashrc (view raw)
1#
2# ~/.bashrc
3#
4
5# If not running interactively, don't do anything
6[[ $- != *i* ]] && return
7
8# aliases
9alias ls='ls --color=auto --group-directories-first'
10alias ll='ls -lAh'
11alias cat='bat -p'
12alias ssh='TERM=rxvt ssh'
13alias config='/usr/bin/git --git-dir=/home/aaoth/dotfiles --work-tree=/home/aaoth'
14alias brc='nvim ~/.bashrc && source ~/.bashrc'
15alias vrc='nvim ~/.config/nvim/init.vim && source ~/.config/nvim/init.vim'
16alias v='nvim'
17
18PS1='[\u@\h \W]\$ '
19
20export PATH=$PATH:/home/aaoth/.gem/ruby/2.7.0/bin
21
22# use gpg authentication key for ssh auth
23export SSH_AUTH_SOCK=$( gpgconf --list-dirs agent-ssh-socket )
24gpgconf --launch gpg-agent
25
26# fzf bindings and tweaks
27source /usr/share/fzf/key-bindings.bash
28source /usr/share/fzf/completion.bash
29export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
30export FZF_CTRL_T_COMMAND='$FZF_DEFAULT_COMMAND'
31
32# ripped off from nixcasts' .bashrc
33pacs() {
34 sudo pacman -Syy $(pacman -Ssq | fzf -m --preview="pacman -Si {}" \
35 --preview-window=:hidden --bind=space:toggle-preview)
36}