rebase
This commit is contained in:
parent
a5fc03abe6
commit
73a61f62d0
1 changed files with 110 additions and 104 deletions
18
.bashrc
18
.bashrc
|
@ -11,8 +11,7 @@ _sensible.bash_(){
|
|||
# Version: 0.2.2
|
||||
|
||||
# Unique Bash version check
|
||||
if ((BASH_VERSINFO[0] < 4))
|
||||
then
|
||||
if ((BASH_VERSINFO[0] < 4)); then
|
||||
echo "sensible.bash: Looks like you're running an older version of Bash."
|
||||
echo "sensible.bash: You need at least bash-4.0 or some options will not work correctly."
|
||||
echo "sensible.bash: Keep your software up-to-date!"
|
||||
|
@ -38,7 +37,7 @@ bind Space:magic-space
|
|||
shopt -s globstar 2>/dev/null
|
||||
|
||||
# Case-insensitive globbing (used in pathname expansion)
|
||||
shopt -s nocaseglob;
|
||||
shopt -s nocaseglob
|
||||
|
||||
## SMARTER TAB-COMPLETION (Readline bindings) ##
|
||||
|
||||
|
@ -99,7 +98,7 @@ shopt -s cdspell 2> /dev/null
|
|||
# This defines where cd looks for targets
|
||||
# Add the directories you want to have fast access to, separated by colon
|
||||
# Ex: CDPATH=".:~:~/projects" will look for targets in the current working directory, in home and in the ~/projects folder
|
||||
CDPATH="."
|
||||
CDPATH=".:~"
|
||||
|
||||
# This allows you to bookmark your favorite places across the file system
|
||||
# Define a variable containing a path and you will be able to cd into it regardless of the directory you're in
|
||||
|
@ -180,7 +179,6 @@ _color_prompt_() {
|
|||
else
|
||||
color_prompt=
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
|
@ -188,6 +186,7 @@ _color_prompt_() {
|
|||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||
fi
|
||||
unset color_prompt force_color_prompt
|
||||
fi
|
||||
}
|
||||
|
||||
# ─< check if command exists >────────────────────────────────────────────────────────────
|
||||
|
@ -313,6 +312,11 @@ _cli_qol_() {
|
|||
|
||||
}
|
||||
|
||||
_games() {
|
||||
alias g2048='bash -c "$(curl -sSL https://git.k4li.de/pika/scripts/raw/branch/main/bash/games/2048.sh)"'
|
||||
alias gwordle='bash -c "$(curl -sSL https://git.k4li.de/pika/scripts/raw/branch/main/bash/games/wordle.sh)"'
|
||||
}
|
||||
|
||||
# ─< t stands for trash(-cli) >───────────────────────────────────────────────────────────────
|
||||
_trash() {
|
||||
if command_exists trash; then
|
||||
|
@ -374,7 +378,8 @@ _fetches_() {
|
|||
git clone https://git.k4li.de/mirrors/fastfetch.git $HOME/.local/share/fastfetch >/dev/null 2>&1
|
||||
exec $SHELL
|
||||
fi
|
||||
command clear & fastfetch
|
||||
command clear &
|
||||
fastfetch
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -561,6 +566,7 @@ get_alias() {
|
|||
_fancy_ls_
|
||||
_coding_
|
||||
_fetches_
|
||||
_games
|
||||
}
|
||||
|
||||
main() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue