first commit
This commit is contained in:
60
zsh/zsh_personal
Normal file
60
zsh/zsh_personal
Normal file
@@ -0,0 +1,60 @@
|
||||
# source /opt/tools/swtools/git-completion/git-completion.bash #added by 6500gitsetup
|
||||
#---------------------------------- Alias -----------------------------------------
|
||||
alias tmux='tmux -u'
|
||||
alias vim="nvim"
|
||||
alias n="nvim"
|
||||
alias z="zoxide"
|
||||
alias cht="cht.sh"
|
||||
alias ls="eza --group-directories-first"
|
||||
alias bless="bat --paging=auto"
|
||||
alias gca="git commit --amend"
|
||||
alias gs="git status"
|
||||
alias gC="git commit"
|
||||
alias gl="git log"
|
||||
alias gn="git log -n2"
|
||||
alias go="git log --oneline"
|
||||
alias rename-pane="~/dotfiles/scripts/rename-pane.sh"
|
||||
|
||||
|
||||
#--------------------------------- Exports ---------------------------------------
|
||||
export EDITOR='nvim'
|
||||
|
||||
#--------------------------------- Set bash prompt -------------------------------
|
||||
# export PS1="\e[1;32m\h\e[0m:\e[1;34m\w\e[0m\n$ "
|
||||
#
|
||||
#
|
||||
#--- DevOps Shell
|
||||
# devops-activate
|
||||
|
||||
cdls() {
|
||||
local dir="$1"
|
||||
local dir="${dir:=$HOME}"
|
||||
if [[ -d "$dir" ]]; then
|
||||
cd "$dir" >/dev/null; ls --color=auto
|
||||
else
|
||||
echo "bash: cdls: $dir: Directory not found"
|
||||
fi
|
||||
}
|
||||
#
|
||||
# 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
|
||||
|
||||
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="│"'
|
||||
|
||||
export PATH="$HOME/neovim/bin:$PATH"
|
||||
# colorscript -r
|
||||
Reference in New Issue
Block a user