all repos — dotfiles @ 8a7e8b14255bd71aeb4272a234aee824cf1280e0

personal dotfiles

.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'
14
15PS1='[\u@\h \W]\$ '
16
17export PATH=$PATH:/home/aaoth/.gem/ruby/2.7.0/bin
18
19# use gpg authentication key for ssh auth
20export SSH_AUTH_SOCK=$( gpgconf --list-dirs agent-ssh-socket )
21gpgconf --launch gpg-agent
22
23# fzf bindings and tweaks
24source /usr/share/fzf/key-bindings.bash
25source /usr/share/fzf/completion.bash
26export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
27export FZF_CTRL_T_COMMAND='$FZF_DEFAULT_COMMAND'
28
29# ripped off from nixcasts' .bashrc
30pacs() {
31    sudo pacman -Syy $(pacman -Ssq | fzf -m --preview="pacman -Si {}" --preview-window=:hidden --bind=space:toggle-preview)
32}