Project Access
- Made more POSIX compliant - pnew: Now accepts a remote git repo - pnew: Creates git repo on new (not git) projects Aliases - Dev aliases moved to this repo instead of dotfiles - Create aliases when the underlying programs are installed - Alias to copy my template .gitignore to current directory
This commit is contained in:
26
10x_alias.sh
Normal file
26
10x_alias.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Git
|
||||
git_push_all_changes() {
|
||||
git add . && git commit -am "${1}" && git push
|
||||
}
|
||||
alias git_just_push=git_push_all_changes
|
||||
alias cd_root='cd $(git rev-parse --show-toplevel 2>/dev/null || echo ".")'
|
||||
alias cd_git_root=cd_root
|
||||
|
||||
# Tmux
|
||||
command -v tmux >/dev/null && alias ta="tmux a"
|
||||
command -v tmux >/dev/null && alias tat="tmux a -t"
|
||||
command -v tmux >/dev/null && alias tls="tmux ls"
|
||||
command -v tmux >/dev/null && alias tnew="tmux new"
|
||||
command -v tmux >/dev/null && alias tnewt="tmux new -t"
|
||||
|
||||
command -v eza >/dev/null && alias ls="eza --hyperlink --header --git -M --icons=auto --color=never"
|
||||
alias ll='ls -alhF'
|
||||
alias la='ls -Ah'
|
||||
alias lsa="ls -lAFhZ"
|
||||
|
||||
alias path="printenv | grep ^PATH= | sed 's/^PATH=//' | tr ':' '\n'"
|
||||
command -v fzf >/dev/null && alias path="printenv | grep ^PATH= | sed 's/^PATH=//' | tr ':' '\n' | fzf"
|
||||
|
||||
[ ! -f "$GITIGNORE_TEMPLATE" ] || alias cpgi="cp ${GITIGNORE_TEMPLATE} ."
|
||||
Reference in New Issue
Block a user