summaryrefslogtreecommitdiffstats
path: root/.profile
diff options
context:
space:
mode:
authorTyler Davis <tyler@gluecode.net>2024-05-10 05:01:06 +0000
committerTyler Davis <tyler@gluecode.net>2024-05-10 05:01:06 +0000
commit8cbcef3e8aacae02d42697b60bb5f85299e21278 (patch)
tree63fb884c346b43f514c2a7c665286da4cb16977e /.profile
parent640acb40f3a90840720473cbd6b00502f7e3f8ea (diff)
downloaddotfiles-8cbcef3e8aacae02d42697b60bb5f85299e21278.tar.gz
dotfiles-8cbcef3e8aacae02d42697b60bb5f85299e21278.zip
sh: linux aliases are different than osx
Diffstat (limited to '.profile')
-rw-r--r--.profile18
1 files changed, 12 insertions, 6 deletions
diff --git a/.profile b/.profile
index 9f7b8a1..a3ee8e4 100644
--- a/.profile
+++ b/.profile
@@ -42,7 +42,12 @@ if [ "$(uname -s)" = "Darwin" ]; then
# Unlock Keychain cli
alias unlock='security unlock-keychain ~/Library/Keychains/login.keychain'
-
+ alias ls='/bin/ls -F -h -A -D "%F %H:%M:%S"'
+ alias ll='/bin/ls -F -h -A -D "%F %H:%M:%S" -l'
+else
+ # Linux alias is likely busybox or gnu, which doesn't have the -D argument option
+ alias ls='/bin/ls --color=never -F -h -A '
+ alias ll='/bin/ls --color=never -F -h -A -l'
fi
# === END OSX ===
@@ -86,8 +91,6 @@ fi
export LESS=FRX
# Defaults
-alias ls='/bin/ls -F-h -A -D "%F %H:%M:%S"'
-alias ll='/bin/ls -F-h -A -D "%F %H:%M:%S" -l'
alias dua='du -h -d 1 | sort -h'
@@ -148,9 +151,12 @@ alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
## == END DOTFILES ==
# Prompt
-USER=$(id -un)
-HOSTNAME=$(uname -n)
-export PS1='$USER@$HOSTNAME:$PWD/\$ '
+#USER=$(id -un)
+#HOSTNAME=$(uname -n)
+
+export HISTFILE=~/.history
+export HISTSIZE=10000
+export PS1='\$ '
if [ ! $(echo $SHELL|grep -q "bash") ]; then
if [ -f "$HOME/.bashrc" ]; then . $HOME/.bashrc; fi