Skip to content

Commit

Permalink
Compress bash files into one
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonsteiner committed Jan 3, 2024
1 parent 304328c commit a9747fb
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 62 deletions.
67 changes: 67 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,69 @@
source /home/cs/dotfiles/source_bash_files.sh
[ -f ~/.fzf.bash ] && source ~/.fzf.bash

# aliases
alias ..='cd ../'
alias ...='cd ../../'
alias ....='cd ../../../'

alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l.='ls -d .* --color=auto'
alias ll='ls -alF'
alias ls='ls --color=auto'
alias vi='vim'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'

alias black='black --line-length=120'
alias pip='pip3'
alias python='python3'
alias nvim='~/.local/bin/nvim'
alias tmux='TERM=xterm-256color tmux'

alias sshfix='eval $(ssh-agent);ssh-add'
alias gd='git diff'
alias gds='git diff --staged'
alias gs='git status'
alias ga='git add'
alias gr='git restore'
alias grs='git restore --staged'
alias gcm='git commit -m'
alias gc='git commit'
alias gbdates='git for-each-ref --sort=committerdate refs/heads/ --format="%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:short)%(color:reset))"'
alias gco='git checkout'
alias gca='git commit --amend --no-edit --date=now'

alias pkgList='apt-mark showmanual > package.list'
alias pktInstallList='apt-mark showmanual > package.list'

# config
export EDITOR=vim
export PSQL_EDITOR=vim
export CC=clag
export CXX=clang++
export PYTHONBREAKPOINT='IPython.core.debugger.set_trace'
export LOGLEVEL='debug'
export PS1='\[\e[0;32m\][ $? \[\e[0;33m\]\t \[\e[0;32m\]\u \[\e[0;33m\]\w \[\e[0;32m\]] \$ \[\e[0m\]'

source ~/dotfiles/git-completion.bash

if [ -f ~/dotfiles/pytest_complete ]; then
. ~/dotfiles/pytest_complete || true
fi


# functions
function optimizeGit(){
git fsck
git gc
git prune
echo "git optimized"
}
function sendf() {
echo stuff | nail -a $1 -s files clintonsteiner@gmail.com
}
ff () { find . -name "*$1*" -ls ;}

# PS1
export PS1='\e[48;5;69m\][\[\e[38;5;255m\]\u\[\e[39m\]@\[\e[4m\]\h\[\e[24m\]]\[\e[38;5;232;48;5;114m\]$( git branch 2>/dev/null | grep '"'"'*'"'"' | colrm 1 2)\[\e[0;48;5;202m\] \w \[\e[0m\]\[$(tput sc; printf "%*s" $((COLUMNS - 40)) "$(date "+%I:%M %p %m/%d")"; tput rc)\[\e[48;5;62m\]\]\[\e[0m\]\n $: '
34 changes: 0 additions & 34 deletions aliases.sh

This file was deleted.

14 changes: 0 additions & 14 deletions config.sh

This file was deleted.

11 changes: 0 additions & 11 deletions functions.sh

This file was deleted.

3 changes: 0 additions & 3 deletions promptline.sh

This file was deleted.

0 comments on commit a9747fb

Please sign in to comment.