66 lines
1.1 KiB
Bash
66 lines
1.1 KiB
Bash
#
|
|
# ~/.bashrc
|
|
#
|
|
|
|
# If not running interactively, don't do anything
|
|
[[ $- != *i* ]] && return
|
|
|
|
alias ls='ls --color=auto'
|
|
alias grep='grep --color=auto'
|
|
PS1='[\u@\h \W]\$ '
|
|
|
|
alias ll="ls -la --time-style=long-iso"
|
|
alias l="ll"
|
|
|
|
alias ..="cd .."
|
|
|
|
alias m="micro"
|
|
alias sm="sudo micro"
|
|
|
|
alias gita="git add ."
|
|
alias gitc="git commit -m"
|
|
alias gitp="git push"
|
|
|
|
alias weather="curl https://wttr.in/"
|
|
|
|
function gitf() {
|
|
|
|
if [ -z $1 ]; then
|
|
echo "no commit message, doing nothing"
|
|
else
|
|
echo "directly commiting with message \"$1\""
|
|
git add .
|
|
git commit -m $1
|
|
git push
|
|
fi
|
|
}
|
|
|
|
alias icat="kitten icat"
|
|
alias cls="clear"
|
|
|
|
alias ssh="kitten ssh"
|
|
alias ssk="kitten ssh"
|
|
|
|
alias serial="sudo tio -a latest"
|
|
|
|
alias t="wd"
|
|
|
|
alias lgrep="l | grep"
|
|
alias lg="lgrep"
|
|
|
|
function y() {
|
|
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
|
yazi "$@" --cwd-file="$tmp"
|
|
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
|
builtin cd -- "$cwd"
|
|
fi
|
|
rm -f -- "$tmp"
|
|
}
|
|
|
|
|
|
|
|
eval "$(starship init bash)"
|
|
|
|
fastfetch --logo-color-1 red --logo-color-2 red --color red -l ~/Dotfiles/pin.txt
|
|
. "$HOME/.cargo/env"
|