aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc98
1 files changed, 0 insertions, 98 deletions
diff --git a/.bashrc b/.bashrc
deleted file mode 100644
index 41db4e6..0000000
--- a/.bashrc
+++ /dev/null
@@ -1,98 +0,0 @@
-#
-# ~/.bashrc
-#
-
-# If not running interactively, don't do anything
-[[ $- != *i* ]] && return
-
-# Bash options
-set -o vi
-bind -m vi-insert "\C-l":clear-screen
-source /usr/share/bash-completion/bash_completion
-export HISTCONTROL=ignoredups:erasedup
-export HISTSIZE=100000
-export HISTFILESIZE=100000
-
-# Aliases
-alias ls='ls --color=auto'
-alias la='ls -lah'
-alias ll='ls -1'
-alias ..='cd ..'
-alias ...='cd ...'
-alias -- -='cd -'
-alias c='cd'
-alias cp='cp -v'
-alias mv='mv -v'
-alias cls='clear; ls'
-alias vim='nvim'
-alias v='nvim'
-alias less='less -r'
-alias calc='bc -lq'
-alias zat='zathura'
-alias pdf='zathura'
-alias clip='xclip -selection c'
-alias scrot='maim -us | clip -t image/png'
-alias py='python3'
-alias js='node'
-alias word='duden --fuzzy'
-alias prev='preview'
-alias script='script -q'
-alias sudo='sudo '
-alias please='sudo $(fc -ln -1)'
-
-# Git aliases
-alias gi='git init'
-alias gs='git status'
-alias gc='git commit'
-alias ga='git add'
-alias gp='setsid -f git push --quiet' # yeah..
-alias gd='git diff'
-alias gr='git reset'
-alias gl='git log'
-alias gm='git mv'
-alias gch='git checkout'
-
-# Functions
-hex() { hexdump -C "$1" | less; }
-disasm() { objdump -drwC -Mintel "$1" | less; }
-disasmc() { objdump -drwC -Mintel --visualize-jumps=color "$1" | less -r; }
-ports() { sudo lsof -i -P -n | grep LISTEN; }
-com() { compgen -c | rg "$1"; }
-
-# Settings
-export PS1='[\W] '
-export HISTCONTROL=ignoredups
-export BROWSER='qutebrowser'
-export EDITOR='nvim'
-export TERM='st'
-export TERMINAL='st'
-export DENO_INSTALL="$HOME/.deno"
-export JAVA_HOME=/usr/lib/jvm/default
-export PATH=/usr/local/bin/:/usr/local/sbin/:/usr/local/bin/:/usr/bin/:/bin/:/usr/bin/site_perl/:/usr/bin/vendor_perl/:/usr/bin/core_perl/:$HOME/.scripts/:$HOME/.sailfish/bin/:$HOME/.gem/ruby/2.7.0/bin/:$HOME/.cargo/bin/:$HOME/.local/bin/:$HOME/go/bin/:$JAVA_HOME:/opt/android-sdk/tools/bin:/opt/android-sdk/tools/:$DENO_INSTALL/bin/
-export ANDROID_SDK_ROOT=/opt/android-sdk
-export ANDROID_HOME=/opt/android-sdk
-export GITHUB_TOKEN="$(cat "$HOME"/.crypto/github)"
-export UNCRUSTIFY_CONFIG="$HOME/.config/uncrustify.cfg"
-
-# Finding
-export FZF_DEFAULT_COMMAND='rg --files'
-export FZF_DEFAULT_OPTS='--bind ctrl-d:half-page-down,ctrl-u:half-page-up'
-alias ff='fzf --preview '\''bat --style=numbers --color=always --line-range :500 {}'\'' --bind "enter:execute(nvim {})"'
-alias fp='fzf --preview '\''bat --style=numbers --color=always --line-range :500 {}'\'' --bind "enter:execute(preview {})"'
-alias tree='rg --files'
-
-# Superuser customization
-[ "$(id -u)" == "0" ] && export PS1="\[\e[01;31m\]$PS1\[\e[00m\]"
-
-# nnn
-alias nnn='nnn -e'
-export NNN_ARCHIVE="\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$"
-n() {
- if [ -n "$NNNLVL" ] && [ "${NNNLVL:-0}" -ge 1 ]; then return; fi
- export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd"
- nnn "$@"
- if [ -f "$NNN_TMPFILE" ]; then
- . "$NNN_TMPFILE"
- rm -f "$NNN_TMPFILE" >/dev/null
- fi
-}