changed bashrc

This commit is contained in:
anaximenes 2022-04-07 08:48:04 +05:30
parent 4915545311
commit d48abbe51d
1 changed files with 13 additions and 5 deletions

18
bashrc
View File

@ -1,9 +1,11 @@
# Basics
[[ $- != *i* ]] && return #bash does nothing when not running interactively
set +o history #turn history off
# set +o history #turn history off
set -o vi #set vi mode as default mode for GNU readline
export EDITOR="vim" #set default editor as vi
export VISUAL="vim" #set vim as default editor in nnn
export EDITOR="vim" #set default editor as vim
export LESSHISTFILE="-" #enforce XDG base directory standards
export LANG=en_IN.UTF-8 #set locale as UTF-8 compatible
# Alias
@ -28,6 +30,12 @@ alias pw="pandoc -f html -t markdown"
alias arec="ffmpeg -f alsa -i hw:0 out.opus"
alias vrec="ffmpeg -f x11grab -s 1920x1080 -i :0.0 -f alsa -i hw:0 out.mkv"
# URL shortner
alias qnd="read -p \"Enter URL:\" && curl -X POST -d \"$REPLY\" https://qnd.be"
# Ephemeral file hosting at https://oshi.at
alias oshi="read -p \"Enter file path\" && curl -T \"$REPLY\" https://oshi.at"
# USB mounting
# N.B: This assumes the usb is always mounted at sdb1
# Also: mkdir ~/Downloads/mount/ in case it does not already exist
@ -39,10 +47,10 @@ alias u3="doas umount ~/down/mount/"
alias s1="simple-mtpfs -l"
alias s2="simple-mtpfs --device 1 ~/down/mount"
alias s3="fusermount -u ~/down/mount"
# Get one-line weather report
# alias wttr="curl https://wttr.in/?format=3"
# }
# Set $PS1 prompt
PS1="\[\033[01;31m\][\W]\033[01;31m\] » \[\033[00m\]"
# Enforce XDG base directory standards
export LESSHISTFILE="-"