OSDN Git Service

[add] : Added bash settings.
authorhayao <shun819.mail@gmail.com>
Wed, 4 Mar 2020 11:46:31 +0000 (20:46 +0900)
committerhayao <shun819.mail@gmail.com>
Wed, 4 Mar 2020 11:46:31 +0000 (20:46 +0900)
airootfs/etc/bash.bashrc [new file with mode: 0644]
airootfs/etc/bash_aliases [new file with mode: 0644]

diff --git a/airootfs/etc/bash.bashrc b/airootfs/etc/bash.bashrc
new file mode 100644 (file)
index 0000000..fd038ed
--- /dev/null
@@ -0,0 +1,17 @@
+#
+# /etc/bash.bashrc
+#
+
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+[[ $DISPLAY ]] && shopt -s checkwinsize
+
+# PS1='[\u@\h \W]\$ '
+PS1='\u@\h:\w\$ ' 
+
+if [[ -f /etc/bash_aliases ]]; then
+    source /etc/bash_aliases
+fi
+
+export EDITOR=nano
diff --git a/airootfs/etc/bash_aliases b/airootfs/etc/bash_aliases
new file mode 100644 (file)
index 0000000..8fdf3e1
--- /dev/null
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+alias ls='ls --color=auto'
+alias htop='htop -d 5'