all repos — dotfiles @ 72b81d79bafbc42b137a5fbb093cfd56b9ffee2c

my *nix dotfiles

Fix ls

Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Mon, 17 May 2021 19:57:51 +0530
commit

72b81d79bafbc42b137a5fbb093cfd56b9ffee2c

parent

210682665696efc0bb2b5227da28a7369f776774

1 files changed, 11 insertions(+), 14 deletions(-)

jump to
M bash/.bashrc.d/90-aliases.bashbash/.bashrc.d/90-aliases.bash

@@ -1,22 +1,11 @@

-alias gah='sudo $(fc -ln -1)' alias vime="vim ~/.vimrc" alias o="xdg-open" -alias gc="git commit -v -s" +alias gc="git commit -v -S" alias gst="git status --short" alias ga="git add" alias gd="git diff --minimal" alias gl="git log --oneline --decorate --graph" -alias ls="colorls -G" alias vim="nvim" - -socks() { - pkill ssh - ssh -D 8008 emerald -fN -} - -up() { - ~/bin/icyup.sh "$1" -} nvmon() { source ~/.nvm/nvm.sh

@@ -38,6 +27,14 @@ ggp() {

git push "$(git remote show)" "$(git branch --show-current)" } -gcl() { - git clone "$@" + +ls() { + case "$OSTYPE" in + "darwin"*) + /bin/ls -G "$@" + ;; + *"bsd"*) + colorls -G "$@" + ;; + esac }