Compare commits

..

3 Commits

Author SHA1 Message Date
a2acf44f91 migrate git completion setup to alias file 2026-10-29 10:10:53 -06:00
f69d4376d1 remove extraneous argument reference on edit cmds, as it did nothing 2026-10-29 10:06:37 -06:00
d61d877464 fix bug in apps
bash
fun
git
LICENSE
README.md alias where it listed filenames starting with 'd' instead of just directories
2026-10-26 16:55:00 -06:00
2 changed files with 7 additions and 8 deletions

View File

@@ -34,6 +34,10 @@ alias chgrp='chgrp --preserve-root'
## apps
alias g='git'
# enable tab completion for 'g' by marking as alias for 'git'
if type _git &> /dev/null; then
complete -o default -o nospace -F _git g;
fi
alias bat='batcat'
alias bathelp='bat --plain --language=help'
@@ -42,13 +46,13 @@ help() {
}
## text editing
alias edit="emacs $1"
alias sedit="sudo emacs $1"
alias edit="emacs"
alias sedit="sudo emacs"
## ls helpers
alias l="ls -lFh --color"
alias la="ls -AF --color" # exclude . and ..
alias lsd="ls -F --color | grep --color=never '^d'" # only directories
alias lsd="ls -lFh --color | grep --color=never '^d'" # only directories
alias ls="command ls --color" # always color
alias ll="ls -AlFh --color"

View File

@@ -28,8 +28,3 @@ shopt -s nocaseglob; # case-insensitive globbing
shopt -s histappend; # append to bash history file
shopt -s cdspell; # autocorrect typos in path names when cd'ing
shopt -s checkwinsize # update col/line values on each command
# enable tab completion for 'g' by marking as alias for 'git'
if type _git &> /dev/null; then
complete -o default -o nospace -F _git g;
fi