From 511971a93fccad7d8c161a7a1c3e2b8c80f7c90b Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 15 Apr 2023 23:31:17 +0200 Subject: Added bashrc and profile --- .bashrc | 36 ++++++++++++++++++++++++++++++++++++ .profile | 1 + 2 files changed, 37 insertions(+) create mode 100644 .bashrc create mode 100644 .profile diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..85c6dc2 --- /dev/null +++ b/.bashrc @@ -0,0 +1,36 @@ +#!/usr/bin/bash +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +. /usr/share/git/git-prompt.sh +. /etc/profile.d/lfcd.sh +. /usr/share/bash-completion/bash_completion + +mkcd(){ + mkdir -p $1 && cd $1 +} + +venv(){ + [ -f .venv/bin/activate ] || { echo "could not find .venv" >&2; return 1; } + . .venv/bin/activate +} + +PS1='\[\033[32m\]\h\[\033[0m\]:\[\033[33m\]\w\[\033[0m\]$(__git_ps1 ":\[\033[31m\]%s\[\033[0m\]")\$ ' + +export EDITOR=vis +export GOPATH="$HOME/.local/go" +export MANPAGER="less -R --use-color -Du+c" +export LESSHISTFILE="/dev/null" +export HISTSIZE=5000 +export HISTFILESIZE=5000 +export HISTCONTROL=ignorespace:ignoredups + +alias lfc='lfcd' +alias ls='ls --color=auto' +alias grep='grep --color=auto' +alias diff='diff --color=auto' +alias ip='ip -color=auto' +alias ?='echo $?' + +bind '"":" lfc\n"' +bind -x '" ":"setsid st >/dev/null 2>&1"' diff --git a/.profile b/.profile new file mode 100644 index 0000000..f8d7a80 --- /dev/null +++ b/.profile @@ -0,0 +1 @@ +[ -d ~/.local/bin ] && PATH="~/.local/bin:$PATH" -- cgit v1.1