diff options
author | Tyler Davis <tyler@gluecode.net> | 2024-05-10 05:01:06 +0000 |
---|---|---|
committer | Tyler Davis <tyler@gluecode.net> | 2024-05-10 05:01:06 +0000 |
commit | 8cbcef3e8aacae02d42697b60bb5f85299e21278 (patch) | |
tree | 63fb884c346b43f514c2a7c665286da4cb16977e /.profile | |
parent | 640acb40f3a90840720473cbd6b00502f7e3f8ea (diff) | |
download | dotfiles-8cbcef3e8aacae02d42697b60bb5f85299e21278.tar.gz dotfiles-8cbcef3e8aacae02d42697b60bb5f85299e21278.zip |
sh: linux aliases are different than osx
Diffstat (limited to '.profile')
-rw-r--r-- | .profile | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -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 |