First Commit
This commit is contained in:
18
lib/aliases.bash
Normal file
18
lib/aliases.bash
Normal file
@@ -0,0 +1,18 @@
|
||||
# List directory contents
|
||||
alias sl=ls
|
||||
alias ls='ls -G' # Compact view, show colors
|
||||
alias la='ls -AF' # Compact view, show hidden
|
||||
alias ll='ls -al'
|
||||
alias l='ls -a'
|
||||
|
||||
alias c='clear'
|
||||
alias k='clear'
|
||||
|
||||
alias ..='cd ..' # Go up one directory
|
||||
alias ...='cd ../..' # Go up two directories
|
||||
alias -- -="cd -" # Go back
|
||||
|
||||
# Shell History
|
||||
alias h='history'
|
||||
|
||||
#
|
||||
12
lib/appearance.bash
Normal file
12
lib/appearance.bash
Normal file
@@ -0,0 +1,12 @@
|
||||
# colored grep
|
||||
export GREP_OPTIONS='--color=auto'
|
||||
export GREP_COLOR='1;33'
|
||||
|
||||
# colored ls
|
||||
export LSCOLORS='Gxfxcxdxdxegedabagacad'
|
||||
|
||||
# Apply theming defaults
|
||||
PS1="%n@%m:%~%# "
|
||||
|
||||
# Load the theme
|
||||
source "$BASH/themes/$BASH_THEME/$BASH_THEME.bash"
|
||||
2
lib/grep.bash
Normal file
2
lib/grep.bash
Normal file
@@ -0,0 +1,2 @@
|
||||
export GREP_OPTIONS='--color=auto'
|
||||
export GREP_COLOR='1;32'
|
||||
15
lib/history.bash
Normal file
15
lib/history.bash
Normal file
@@ -0,0 +1,15 @@
|
||||
# append to bash_history if Terminal.app quits
|
||||
shopt -s histappend
|
||||
|
||||
# history handling
|
||||
#
|
||||
# Erase duplicates
|
||||
# Bash History
|
||||
export HISTCONTROL="ignoredups"
|
||||
export HISTCONTROL=erasedups
|
||||
|
||||
# resize history size
|
||||
export HISTSIZE=5000
|
||||
|
||||
|
||||
export AUTOFEATURE=true autotest
|
||||
Reference in New Issue
Block a user