summaryrefslogtreecommitdiff
path: root/.config/shells
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2022-12-29 17:11:23 -0500
committerJacob McDonnell <jacob@jacobmcdonnell.com>2022-12-29 17:11:23 -0500
commitcbe9d54a1c7af3c2d0af3e86d6ba05c2e857fa64 (patch)
tree89c9cb952df1ee299fa5537c96cc6b59d56a58e5 /.config/shells
parentb8ff930812770cb0a1b76536b34026c991b3cf44 (diff)
Fixed some aliases for Linux
Diffstat (limited to '.config/shells')
-rwxr-xr-x.config/shells/aliasrc9
-rw-r--r--.config/shells/zsh/.zshrc1
2 files changed, 9 insertions, 1 deletions
diff --git a/.config/shells/aliasrc b/.config/shells/aliasrc
index 6fd6fb7..3124537 100755
--- a/.config/shells/aliasrc
+++ b/.config/shells/aliasrc
@@ -7,6 +7,14 @@ then
la="ls -Ah" \
ls="ls -h" \
l="ls -lAh"
+# Linux has --color
+elif [[ "$(uname -s)" == "Linux" ]]
+then
+ alias \
+ la="ls -Ah --color" \
+ ls="ls -h --color" \
+ l="ls -lAh --color"
+# macOS has -G
else
alias \
la="ls -AhG" \
@@ -27,6 +35,7 @@ alias \
zshup="source $HOME/.config/shells/zsh/.zshrc" \
gc="git clone" \
gu="git add -u" \
+ ga="git commit -a" \
m="micro" \
v="nvim" \
python="python3.10" \
diff --git a/.config/shells/zsh/.zshrc b/.config/shells/zsh/.zshrc
index d2b735d..109e3bd 100644
--- a/.config/shells/zsh/.zshrc
+++ b/.config/shells/zsh/.zshrc
@@ -22,7 +22,6 @@ autoload -U colors && colors
#PROMPT='%{$fg_bold[$shColor]%}%n%{$reset_color%}@%m\
#:[%{$fg_bold[$shColor]%}$(_collapsed_pwd)%{$reset_color%}]:$ '
#PROMPT='%{$fg_bold[$shColor]%}$comSym%{$reset_color%}:[%{$fg_bold[$shColor]%}%c%{$reset_color%}]:$ '
-python $HOME/.local/bin/days2finals.py
PROMPT='%{$fg_bold[$shColor]%}$comSym%{$reset_color%} in %{$fg_bold[$shColor]%}%c%{$reset_color%}
→ '
source $ZSH/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh