Computer Stuff
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# Alias definitions
|
||||
|
||||
# helper funcs
|
||||
_git(){
|
||||
[ $# -eq 0 ] && {
|
||||
git status && git branch
|
||||
} || {
|
||||
git "$@"
|
||||
}
|
||||
}
|
||||
|
||||
# Default aliases
|
||||
alias ls='ls --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
#alias nyx='nyx -c ~/.config/nyx/config/'
|
||||
|
||||
# Ease of use aliases
|
||||
alias '..'='cd ../'
|
||||
alias '...'='cd ../..'
|
||||
alias google='google-chrome-stable'
|
||||
alias shotcut='QT_OPENGL=software shotcut'
|
||||
|
||||
# special aliases
|
||||
alias 'ff'='nvim $(fzf)'
|
||||
alias ts='date +%Y%m%d%H%M%S'
|
||||
|
||||
# git aliases
|
||||
alias gs='git status'
|
||||
alias ga='git add'
|
||||
|
||||
# Single letter aliases
|
||||
alias d='du_color'
|
||||
alias g=_git
|
||||
alias l='ls -alh'
|
||||
alias n='neofetch --config ~/.config/neofetch.conf'
|
||||
alias p='pacman'
|
||||
alias r='ranger'
|
||||
alias t='tmux'
|
||||
alias v='nvim'
|
||||
|
||||
# Load in any secret aliases if there may be
|
||||
[ -f ~/.config/bash/aliases.sh.secret ] && . ~/.config/bash/aliases.sh.secret
|
||||
@@ -0,0 +1 @@
|
||||
bind '"\C-f":"~/.local/bin/fzf-nvim.sh\n"'
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
# My default editor
|
||||
export EDITOR='nvim'
|
||||
|
||||
# Add user created scripts to path
|
||||
[ -d ~/.local/bin ] && export PATH=$PATH:$HOME/.local/bin
|
||||
|
||||
[ ! -d ~/.config ] && {
|
||||
echo "Error ~/.config does no exist. Creating."
|
||||
mkdir ~/.config
|
||||
}
|
||||
|
||||
export config="$HOME/.config"
|
||||
export CONFIG="$HOME/.config"
|
||||
|
||||
export CARGO_HOME="$CONFIG/cargo"
|
||||
export GNUPGHOME="$CONFIG/gnupg"
|
||||
export __GL_SHADER_DISK_CACHE_PATH="$CONFIG/nv"
|
||||
|
||||
# https://asdf-vm.com/guide/getting-started.html
|
||||
export ASDF_DIR="$CONFIG/.asdf"
|
||||
export ASDF_DATA_DIR="$ASDF_DIR"
|
||||
. "$ASDF_DIR/asdf.sh"
|
||||
. "$ASDF_DIR/completions/asdf.bash"
|
||||
|
||||
# https://direnv.net/
|
||||
eval "$(direnv hook bash)"
|
||||
|
||||
#source ~/sdks/vulkan/1.4.313.0/setup-env.sh
|
||||
|
||||
export DENO_CONFIG="/home/caleb/.config/deno"
|
||||
export PATH="$DENO_CONFIG/bin:$PATH"
|
||||
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
CLEAR_COLOR="\[\e[0m\]"
|
||||
|
||||
# Default value
|
||||
prompt="<Please set prompt in ~/.bash/bash_prompt> % "
|
||||
|
||||
prompt="$CLEAR_COLOR[\[\033[1;38m\]\w$CLEAR_COLOR]$CLEAR_COLOR "
|
||||
|
||||
# My custom prompt
|
||||
#prompt="\[\033[32m\]\u\[\033[36m\]@\[\033[32m\]\h \[\033[37m\]\W\[\033[36m\]$\[\e[0m\] "
|
||||
|
||||
# ParrotOS prompt
|
||||
# prompt="\[\033[0;31m\]\342\224\214\342\224\200\$([[ \$? != 0 ]] && echo \"[\[\033[0;31m\]\342\234\227\[\033[0;37m\]]\342\224\200\")[$(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]root\[\033[01;33m\]@\[\033[01;96m\]\h'; else echo '\[\033[0;39m\]\u\[\033[01;33m\]@\[\033[01;96m\]\h'; fi)\[\033[0;31m\]]\342\224\200[\[\033[0;32m\]\w\[\033[0;31m\]]\n\[\033[0;31m\]\342\224\224\342\224\200\342\224\200\342\225\274 \[\033[0m\]\[\e[01;33m\]\\$\[\e[0m\]"
|
||||
|
||||
# Give prompt to bashrc
|
||||
echo $prompt
|
||||
Reference in New Issue
Block a user