51 lines
1.6 KiB
Bash
51 lines
1.6 KiB
Bash
#---------------------------------- Alias -----------------------------------------
|
|
alias tmux='tmux -u'
|
|
alias cht="cht.sh"
|
|
# alias ls="exa --group-directories-first --icons -T -L1 -l"
|
|
# alias lt="exa --group-directories-first --icons -T -L1"
|
|
# alias ll="ls -lagh"
|
|
alias ls="lsd"
|
|
alias bless="bat --paging=auto"
|
|
alias cat="bat -pf"
|
|
|
|
#--------------------------------- Exports ---------------------------------------
|
|
export EDITOR='nvim'
|
|
# export MANPAGER="sh -c 'col -bx | bat -l man -pfn --paging always'"
|
|
export MANPAGER='nvim +Man!'
|
|
export MANROFFOPT="-c"
|
|
|
|
#--------------------------------- Set bash prompt -------------------------------
|
|
# export PS1="\e[1;32m\h\e[0m:\e[1;34m\w\e[0m\n$ "
|
|
#
|
|
#
|
|
#--- DevOps Shell
|
|
# Key bindings
|
|
# bind '"\C-f":"tmux-sessionizer\n"'
|
|
|
|
eval "$(starship init bash)"
|
|
|
|
if [[ $- =~ i ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_TTY" ]]; then
|
|
tmux attach-session -t 0|| tmux new-session -s 0
|
|
fi
|
|
#
|
|
# [ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
|
# Set up fzf key bindings and fuzzy completion
|
|
eval "$(fzf --bash)"
|
|
|
|
# alias f="fzf --preview 'fzf-preview.sh {}'"
|
|
# alias t="fzf-tmux"
|
|
|
|
# alias tfn="~/scripts/nvim-fzf.sh"
|
|
# export FZF_DEFAULT_OPTS=$FZF_DEFAULT_OPTS'
|
|
# --multi
|
|
# --color=fg:-1,fg+:#d0d0d0,bg:-1,bg+:#262626
|
|
# --color=hl:#5f87af,hl+:#5fd7ff,info:#afaf87,marker:#87ff00
|
|
# --color=prompt:#d7005f,spinner:#af5fff,pointer:#af5fff,header:#87afaf
|
|
# --color=border:#262626,label:#aeaeae,query:#d9d9d9
|
|
# --border="rounded"
|
|
# --border-label="" --preview-window="border-rounded" --prompt="> "
|
|
# --info="inline" --marker=">" --pointer="◆" --separator="─" --scrollbar="│"'
|
|
|
|
# colorscript -r
|
|
# neofetch
|