Compare commits

..

No commits in common. "b9d523394361a8032a3b5385949243b4a0b0b41e" and "a179516351c3175aca83026142ab54d6ea73468a" have entirely different histories.

4 changed files with 3 additions and 66 deletions

View File

@ -1,5 +1,3 @@
#!/bin/bash
# Do nothing if not running an interactive shell # Do nothing if not running an interactive shell
case $- in case $- in
*i*) ;; *i*) ;;
@ -11,14 +9,11 @@ export TERM="xterm-256color"
export EDITOR="vi" export EDITOR="vi"
export VISUAL="vi" export VISUAL="vi"
export PATH="$PATH:$HOME/.local/bin/:$HOME/go/bin/"
export CDPATH=".:$HOME"
# The Prompt # The Prompt
export PS1='\[\e[38;2;161;161;0m\]\u\[\e[0m\]@\[\e[34m\]\h\[\e[0m\]:\[\e[32m\]\W\[\e[0m\]\$ ' export PS1='\u@\h:\W\$ '
# History settings # History settings
set -o history # Enable history
shopt -s histappend # Append to the history file instead of overwriting it shopt -s histappend # Append to the history file instead of overwriting it
HISTCONTROL=ignoreboth # Don't put duplicate lines or lines beginning with a space in the history file HISTCONTROL=ignoreboth # Don't put duplicate lines or lines beginning with a space in the history file
HISTSIZE=-1 # Don't limit the number of history lines stored HISTSIZE=-1 # Don't limit the number of history lines stored
@ -26,7 +21,7 @@ HISTFILESIZE=-1 # Don't truncate the history when reading the history fil
# Pager settings # Pager settings
# Use lesspipe if it exists # Use lesspipe if it exists
if command -v lesspipe >/dev/null; then if command -v lesspipe; then
export LESSOPEN="| $(command -v lesspipe) %s"; export LESSOPEN="| $(command -v lesspipe) %s";
export LESSCLOSE="$(command -v lesspipe) %s %s"; export LESSCLOSE="$(command -v lesspipe) %s %s";
fi fi
@ -58,8 +53,3 @@ set -o vi
# Aliases # Aliases
source ~/.config/shell/aliasrc source ~/.config/shell/aliasrc
# Functions
md() {
mkdir -p "$1" && cd "$1"
}

View File

@ -1,32 +0,0 @@
#!/bin/sh
# shell aliases
alias c="printf '\e[H\e[2J'" # printing control sequences is faster than "clear"
# vim aliases
alias v="vim"
# git aliases
alias gi="git init"
alias ga="git add"
alias gc="git commit"
alias gca="git commit -a"
alias gp="git push"
alias gd="git diff"
alias gs="git status"
alias gl="git log"
# docker aliases
alias d="docker"
# taskwarrior aliases
alias t="task"
# aliases for enabling color
alias ls="ls --human-readable --color=auto"
alias grep="grep --color=auto"
alias fgrep="fgrep --color=auto"
alias egrep="egrep --color=auto"
alias diff="diff --color=auto"
alias ip="ip --color=auto"

View File

@ -1,4 +0,0 @@
# Load the ~/.bashrc file if we're using Bash
if test -n "$BASH_VERSION"; then
test -r "$HOME/.bashrc" && . "$HOME/.bashrc"
fi

View File

@ -1,17 +0,0 @@
" automatically indent new lines
set autoindent
" automatically write the current file when changing with multiple files open
set autowrite
" activate line numbers
set number
" turn on row and column position
set ruler
" show command and insert modes
set showmode
" set a tab to two spaces
set tabstop=2